aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2018-03-30 13:31:56 +0100
committerAndrew White <andrew.white@unboxed.co>2018-03-30 13:31:56 +0100
commit99c44015b96a4ebf03eb23a8c7d1f9ab1460cb53 (patch)
treefd2b6cf8698e8606f1b6a387706832ea8a4e3c5c /activerecord
parentbbd4aad25b38683900a92dd159ecf600509f21ae (diff)
downloadrails-99c44015b96a4ebf03eb23a8c7d1f9ab1460cb53.tar.gz
rails-99c44015b96a4ebf03eb23a8c7d1f9ab1460cb53.tar.bz2
rails-99c44015b96a4ebf03eb23a8c7d1f9ab1460cb53.zip
Remove shadowing variable warning
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