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:
Adrianna Chang 2023-08-29 11:02:07 -04:00 committed by GitHub
commit 684a2a278f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -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
------------