mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #38581 from eileencodes/remove-unused-argument
Remove unused argument
This commit is contained in:
commit
3269e4e7b0
1 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ module ActiveRecord
|
|||
|
||||
with_handler(role, &blk)
|
||||
elsif shard
|
||||
with_shard(connection_specification_name, shard, role || current_role, prevent_writes, &blk)
|
||||
with_shard(shard, role || current_role, prevent_writes, &blk)
|
||||
elsif role
|
||||
with_role(role, prevent_writes, &blk)
|
||||
else
|
||||
|
@ -303,7 +303,7 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
|
||||
def with_shard(connection_specification_name, pool_key, role, prevent_writes)
|
||||
def with_shard(pool_key, role, prevent_writes)
|
||||
old_pool_key = current_pool_key
|
||||
|
||||
with_role(role, prevent_writes) do
|
||||
|
|
Loading…
Reference in a new issue