Skip to content

Commit

Permalink
Remove deprecated config.active_storage.replace_on_assign_to_many
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed May 1, 2024
1 parent cf64895 commit b06252e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 4 additions & 0 deletions activestorage/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
* Remove deprecated `config.active_storage.replace_on_assign_to_many`.

*Rafael Mendonça França*

* Add support for custom `key` in `ActiveStorage::Blob#compose`.

*Elvin Efendiev*
Expand Down
8 changes: 0 additions & 8 deletions activestorage/lib/active_storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,6 @@ module ActiveStorage

mattr_accessor :video_preview_arguments, default: "-y -vframes 1 -f image2"

def self.replace_on_assign_to_many
ActiveStorage.deprecator.warn("config.active_storage.replace_on_assign_to_many is deprecated and has no effect.")
end

def self.replace_on_assign_to_many=(value)
ActiveStorage.deprecator.warn("config.active_storage.replace_on_assign_to_many is deprecated and has no effect.")
end

def self.silence_invalid_content_types_warning
ActiveStorage.deprecator.warn("config.active_storage.silence_invalid_content_types_warning is deprecated and has no effect.")
end
Expand Down
2 changes: 2 additions & 0 deletions guides/source/7_2_release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ Please refer to the [Changelog][active-storage] for detailed changes.

### Removals

* Remove deprecated `config.active_storage.replace_on_assign_to_many`.

### Deprecations

### Notable changes
Expand Down

0 comments on commit b06252e

Please sign in to comment.