aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorEileen Uchitelle <eileencodes@gmail.com>2018-09-04 15:51:10 -0400
committerEileen Uchitelle <eileencodes@gmail.com>2018-09-04 15:51:10 -0400
commit35870148b6b71b5b77c90fbbd1ac66b5882121f1 (patch)
tree37a74a3b2148dcc5224c7c9a265c20788cf8bc24 /activerecord
parentfb3642b0caf42b0554a8fd0672943f4da1643b2c (diff)
downloadrails-35870148b6b71b5b77c90fbbd1ac66b5882121f1.tar.gz
rails-35870148b6b71b5b77c90fbbd1ac66b5882121f1.tar.bz2
rails-35870148b6b71b5b77c90fbbd1ac66b5882121f1.zip
Remove unused block
This method used to take a block, but that's no longer the case so we can delete the block from the method signature.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/database_configurations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/database_configurations.rb b/activerecord/lib/active_record/database_configurations.rb
index 64dd972a47..a94f46d07f 100644
--- a/activerecord/lib/active_record/database_configurations.rb
+++ b/activerecord/lib/active_record/database_configurations.rb
@@ -32,7 +32,7 @@ module ActiveRecord
# the returned list. Most of the time we're only iterating over the write
# connection (i.e. migrations don't need to run for the write and read connection).
# Defaults to +false+.
- def configs_for(env_name: nil, spec_name: nil, include_replicas: false, &blk)
+ def configs_for(env_name: nil, spec_name: nil, include_replicas: false)
configs = env_with_configs(env_name)
unless include_replicas