Skip to content

Commit 689385c

Browse files
committed
fix proxying keyword arguments
this resolves a bug with Rails 6.1 on Ruby 3, where keyword arguments are not forwarded and this causes an ArgumentError
1 parent a051339 commit 689385c

File tree

1 file changed

+2
-2
lines changed
  • elasticsearch-model/lib/elasticsearch/model

1 file changed

+2
-2
lines changed

elasticsearch-model/lib/elasticsearch/model/proxy.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ def initialize(target)
117117

118118
# Delegate methods to `@target`
119119
#
120-
def method_missing(method_name, *arguments, &block)
121-
target.respond_to?(method_name) ? target.__send__(method_name, *arguments, &block) : super
120+
def method_missing(method_name, *args, **kwargs, &block)
121+
target.respond_to?(method_name) ? target.__send__(method_name, *args, **kwargs, &block) : super
122122
end
123123

124124
# Respond to methods from `@target`

0 commit comments

Comments
 (0)