Passing in a Hash instance as kwargs parameters requires the "double splat" prefix

This commit is contained in:
Akira Matsuda 2019-09-07 02:58:54 +09:00
parent 855de1a700
commit 438e93f7fd
3 changed files with 3 additions and 3 deletions

@ -185,7 +185,7 @@ def connect(path = ActionCable.server.config.mount_path, **request_params)
connection = self.class.connection_class.allocate
connection.singleton_class.include(TestConnection)
connection.send(:initialize, build_test_request(path, request_params))
connection.send(:initialize, build_test_request(path, **request_params))
connection.connect if connection.respond_to?(:connect)
# Only set instance variable if connected successfully

@ -115,7 +115,7 @@ def discard_on(*exceptions)
# end
# end
def retry_job(options = {})
instrument :enqueue_retry, options.slice(:error, :wait) do
instrument :enqueue_retry, **options.slice(:error, :wait) do
enqueue options
end
end

@ -9,7 +9,7 @@ class SpecializedString < Type::String # :nodoc:
def initialize(type, **options)
@type = type
super(options)
super(**options)
end
end
end