Skip to content

Commit 0883ce1

Browse files
committed
Fix ActiveSupport configurations deprecations
1 parent 284baa1 commit 0883ce1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

activesupport/lib/active_support/railtie.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ class Railtie < Rails::Railtie # :nodoc:
118118

119119
initializer "active_support.set_configs" do |app|
120120
app.config.active_support.each do |k, v|
121-
if k == "disable_to_s_conversion"
121+
if k == :disable_to_s_conversion
122122
ActiveSupport.deprecator.warn("config.active_support.disable_to_s_conversion is deprecated and will be removed in Rails 7.2.")
123-
elsif k == "remove_deprecated_time_with_zone_name"
123+
elsif k == :remove_deprecated_time_with_zone_name
124124
ActiveSupport.deprecator.warn("config.active_support.remove_deprecated_time_with_zone_name is deprecated and will be removed in Rails 7.2.")
125-
elsif k == "use_rfc4122_namespaced_uuids"
125+
elsif k == :use_rfc4122_namespaced_uuids
126126
ActiveSupport.deprecator.warn("config.active_support.use_rfc4122_namespaced_uuids is deprecated and will be removed in Rails 7.2.")
127127
else
128128
k = "#{k}="

0 commit comments

Comments
 (0)