We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ebb508 commit 247f71bCopy full SHA for 247f71b
activerecord/lib/active_record/railtie.rb
@@ -241,8 +241,7 @@ class Railtie < Rails::Railtie # :nodoc:
241
end
242
243
ActiveSupport.on_load(:active_record) do
244
- # Configs used in other initializers
245
- configs = configs.except(
+ configs_used_in_other_initializers = configs.except(
246
:migration_error,
247
:database_selector,
248
:database_resolver,
@@ -259,7 +258,7 @@ class Railtie < Rails::Railtie # :nodoc:
259
258
:postgresql_adapter_decode_dates,
260
)
261
262
- configs.each do |k, v|
+ configs_used_in_other_initializers.each do |k, v|
263
next if k == :encryption
264
setter = "#{k}="
265
# Some existing initializers might rely on Active Record configuration
0 commit comments