File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ def self.included(base)
112
112
# Delegate common methods to the `__elasticsearch__` ClassMethodsProxy, unless they are defined already
113
113
class << self
114
114
METHODS . each do |method |
115
- delegate method , to : :__elasticsearch__ unless self . respond_to ?( method )
115
+ delegate method , to : :__elasticsearch__ unless self . public_instance_methods . include ?( method )
116
116
end
117
117
end
118
118
end
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def self.search(query, options={})
47
47
end
48
48
end
49
49
50
- DummyIncludingModel . __send__ :include , Elasticsearch ::Model
50
+ DummyIncludingModelWithSearchMethodDefined . __send__ :include , Elasticsearch ::Model
51
51
end
52
52
53
53
after ( :all ) do
You can’t perform that action at this time.
0 commit comments