diff options
author | Andrew White <andrew.white@unboxed.co> | 2018-03-30 13:31:56 +0100 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2018-03-30 13:31:56 +0100 |
commit | 99c44015b96a4ebf03eb23a8c7d1f9ab1460cb53 (patch) | |
tree | fd2b6cf8698e8606f1b6a387706832ea8a4e3c5c /activerecord/lib | |
parent | bbd4aad25b38683900a92dd159ecf600509f21ae (diff) | |
download | rails-99c44015b96a4ebf03eb23a8c7d1f9ab1460cb53.tar.gz rails-99c44015b96a4ebf03eb23a8c7d1f9ab1460cb53.tar.bz2 rails-99c44015b96a4ebf03eb23a8c7d1f9ab1460cb53.zip |
Remove shadowing variable warning
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/database_configurations.rb | 4 |
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 |