Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing method updates on Search#update_index as it's overriding Mon…

…goMapper required methods
  • Loading branch information...
commit 0b4c1aeba374cd9042733bd5c562aec0d6563a56 1 parent b5d326a
@andrewtimberlake authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/tire/model/search.rb
View
8 lib/tire/model/search.rb
@@ -135,10 +135,10 @@ def update_index
else
response = index.store( instance, {:percolate => percolator} )
instance.id ||= response['_id'] if instance.respond_to?(:id=)
- instance._index = response['_index'] if instance.respond_to?(:_index=)
- instance._type = response['_type'] if instance.respond_to?(:_type=)
- instance._version = response['_version'] if instance.respond_to?(:_version=)
- instance.matches = response['matches'] if instance.respond_to?(:matches=)
+ #instance._index = response['_index'] if instance.respond_to?(:_index=)
+ #instance._type = response['_type'] if instance.respond_to?(:_type=)
+ #instance._version = response['_version'] if instance.respond_to?(:_version=)
+ #instance.matches = response['matches'] if instance.respond_to?(:matches=)
self
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.