mirror of https://github.com/rails/rails
Merge pull request #49074 from akhilgkrishnan/activestorage-notable-release-note
[skip ci] ActiveStorage notable changes added to 7.1 release note
This commit is contained in:
commit
684a2a278f
|
@ -363,6 +363,19 @@ Please refer to the [Changelog][active-storage] for detailed changes.
|
|||
|
||||
### Notable changes
|
||||
|
||||
* `ActiveStorage::Analyzer::AudioAnalyzer` now outputs `sample_rate` and `tags` in the output `metadata` hash.
|
||||
|
||||
* Add the option to utilize predefined variants when invoking the `preview` or `representation` methods on an
|
||||
attachment.
|
||||
|
||||
* `preprocessed` option is added when declaring variants to preprocess variants.
|
||||
|
||||
* Add the ability to destroy active storage variants.
|
||||
|
||||
```ruby
|
||||
User.first.avatar.variant(resize_to_limit: [100, 100]).destroy
|
||||
```
|
||||
|
||||
Active Model
|
||||
------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue