diff --git a/elasticsearch-model/lib/elasticsearch/model/response/records.rb b/elasticsearch-model/lib/elasticsearch/model/response/records.rb index 0cb832cb2..41aa6fd70 100644 --- a/elasticsearch-model/lib/elasticsearch/model/response/records.rb +++ b/elasticsearch-model/lib/elasticsearch/model/response/records.rb @@ -45,7 +45,6 @@ def initialize(klass, response, options={}) metaclass.__send__ :include, adapter.records_mixin self.options = options - self end # Returns the hit IDs diff --git a/elasticsearch-persistence/examples/notes/application.rb b/elasticsearch-persistence/examples/notes/application.rb index 27f796abb..6c122999d 100644 --- a/elasticsearch-persistence/examples/notes/application.rb +++ b/elasticsearch-persistence/examples/notes/application.rb @@ -35,7 +35,6 @@ def initialize(attributes={}) __add_date __extract_tags __truncate_text - self end def method_missing(method_name, *arguments, &block)