From 1988f2f10237c3a52e6ebe27bd666a5b4d4e0d39 Mon Sep 17 00:00:00 2001 From: nutsoriginal Date: Wed, 28 Jun 2017 16:31:17 +0400 Subject: [PATCH] rename respod_to method to respond_to_missing --- elasticsearch-model/lib/elasticsearch/model/response/result.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch-model/lib/elasticsearch/model/response/result.rb b/elasticsearch-model/lib/elasticsearch/model/response/result.rb index 01481d0e1..267ca6300 100644 --- a/elasticsearch-model/lib/elasticsearch/model/response/result.rb +++ b/elasticsearch-model/lib/elasticsearch/model/response/result.rb @@ -46,7 +46,7 @@ def method_missing(name, *arguments) # Respond to methods from `@result` or `@result._source` # - def respond_to?(method_name, include_private = false) + def respond_to_missing?(method_name, include_private = false) @result.respond_to?(method_name.to_sym) || \ @result._source && @result._source.respond_to?(method_name.to_sym) || \ super