Skip to content

Commit 64d2026

Browse files
authored
Merge pull request #101 from zendesk/bquorning.fix-for-rails-7
Splat kwargs on #execute
2 parents fbd5f7a + 8b2505c commit 64d2026

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/active_record_host_pool/connection_adapter_mixin.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ def initialize(*)
3333
end
3434

3535
def self.ruby2_keywords(*); end unless respond_to?(:ruby2_keywords, true)
36-
ruby2_keywords def execute_with_switching(*args)
36+
ruby2_keywords def execute_with_switching(*args, **kwargs)
3737
if _host_pool_current_database && !_no_switch
3838
_switch_connection
3939
end
40-
execute_without_switching(*args)
40+
execute_without_switching(*args, **kwargs)
4141
end
4242

4343
def drop_database_with_no_switching(*args)

0 commit comments

Comments
 (0)