Skip to content

Commit d9c494e

Browse files
znzpicandocodigo
authored andcommitted
ruby2_keywords is not an instance method
1 parent 8fe0a55 commit d9c494e

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def initialize(target)
115115
@target = target
116116
end
117117

118-
def ruby2_keywords(*) # :nodoc:
118+
def self.ruby2_keywords(*) # :nodoc:
119119
end if RUBY_VERSION < "2.7"
120120

121121
# Delegate methods to `@target`. As per [the Ruby 3.0 explanation for keyword arguments](https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/), the only way to work on Ruby <2.7, and 2.7, and 3.0+ is to use `ruby2_keywords`.

0 commit comments

Comments
 (0)