Skip to content

Commit 684a2a2

Browse files
Merge pull request rails#49074 from akhilgkrishnan/activestorage-notable-release-note
[skip ci] ActiveStorage notable changes added to 7.1 release note
2 parents 5ff6a97 + 19cb350 commit 684a2a2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

guides/source/7_1_release_notes.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,19 @@ Please refer to the [Changelog][active-storage] for detailed changes.
363363

364364
### Notable changes
365365

366+
* `ActiveStorage::Analyzer::AudioAnalyzer` now outputs `sample_rate` and `tags` in the output `metadata` hash.
367+
368+
* Add the option to utilize predefined variants when invoking the `preview` or `representation` methods on an
369+
attachment.
370+
371+
* `preprocessed` option is added when declaring variants to preprocess variants.
372+
373+
* Add the ability to destroy active storage variants.
374+
375+
```ruby
376+
User.first.avatar.variant(resize_to_limit: [100, 100]).destroy
377+
```
378+
366379
Active Model
367380
------------
368381

0 commit comments

Comments
 (0)