Skip to content

Commit

Permalink
Merge pull request #51624 from fatkodima/fix-active_support-deprecations
Browse files Browse the repository at this point in the history
Fix ActiveSupport configurations deprecations
  • Loading branch information
kamipo committed Apr 21, 2024
2 parents 284baa1 + 0883ce1 commit 82054e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activesupport/lib/active_support/railtie.rb
Expand Up @@ -118,11 +118,11 @@ class Railtie < Rails::Railtie # :nodoc:

initializer "active_support.set_configs" do |app|
app.config.active_support.each do |k, v|
if k == "disable_to_s_conversion"
if k == :disable_to_s_conversion
ActiveSupport.deprecator.warn("config.active_support.disable_to_s_conversion is deprecated and will be removed in Rails 7.2.")
elsif k == "remove_deprecated_time_with_zone_name"
elsif k == :remove_deprecated_time_with_zone_name
ActiveSupport.deprecator.warn("config.active_support.remove_deprecated_time_with_zone_name is deprecated and will be removed in Rails 7.2.")
elsif k == "use_rfc4122_namespaced_uuids"
elsif k == :use_rfc4122_namespaced_uuids
ActiveSupport.deprecator.warn("config.active_support.use_rfc4122_namespaced_uuids is deprecated and will be removed in Rails 7.2.")
else
k = "#{k}="
Expand Down

0 comments on commit 82054e8

Please sign in to comment.