diff --git a/activestorage/lib/active_storage/engine.rb b/activestorage/lib/active_storage/engine.rb index 4fa4386d75de3..b956674a48931 100644 --- a/activestorage/lib/active_storage/engine.rb +++ b/activestorage/lib/active_storage/engine.rb @@ -118,15 +118,6 @@ class Engine < Rails::Engine # :nodoc: ActiveStorage.content_types_allowed_inline = app.config.active_storage.content_types_allowed_inline || [] ActiveStorage.binary_content_type = app.config.active_storage.binary_content_type || "application/octet-stream" ActiveStorage.video_preview_arguments = app.config.active_storage.video_preview_arguments || "-y -vframes 1 -f image2" - - unless app.config.active_storage.silence_invalid_content_types_warning.nil? - ActiveStorage.silence_invalid_content_types_warning = app.config.active_storage.silence_invalid_content_types_warning - end - - unless app.config.active_storage.replace_on_assign_to_many.nil? - ActiveStorage.replace_on_assign_to_many = app.config.active_storage.replace_on_assign_to_many - end - ActiveStorage.track_variants = app.config.active_storage.track_variants || false end end diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 0d74dcf7ced8a..2c3b9a1556564 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -1326,7 +1326,7 @@ user.highlights.first.filename # => "funky.jpg" user.highlights.second.filename # => "town.jpg" ``` -Existing applications can opt in to this new behavior by setting [`config.active_storage.replace_on_assign_to_many`][] to `true`. The old behavior will be deprecated in Rails 7.0 and removed in Rails 7.1. +Existing applications can opt in to this new behavior by setting [`config.active_storage.replace_on_assign_to_many`][] to `true`. The old behavior was deprecated in Rails 7.1 and removed in Rails 7.2. [`config.active_storage.replace_on_assign_to_many`]: configuring.html#config-active-storage-replace-on-assign-to-many