aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/database_configurations.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/database_configurations.rb b/activerecord/lib/active_record/database_configurations.rb
index 86624a41c9..1c7a5d1347 100644
--- a/activerecord/lib/active_record/database_configurations.rb
+++ b/activerecord/lib/active_record/database_configurations.rb
@@ -46,8 +46,8 @@ module ActiveRecord
if config["database"] || env_name == "default"
DatabaseConfig.new(env_name, spec_name, config)
else
- config.each_pair.map do |spec_name, sub_config|
- walk_configs(env_name, spec_name, sub_config)
+ config.each_pair.map do |sub_spec_name, sub_config|
+ walk_configs(env_name, sub_spec_name, sub_config)
end
end
end