Permalink
Browse files

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

…goMapper required methods
  • Loading branch information...
1 parent b5d326a commit 0b4c1aeba374cd9042733bd5c562aec0d6563a56 @andrewtimberlake committed Jul 19, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/tire/model/search.rb
View
@@ -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

0 comments on commit 0b4c1ae

Please sign in to comment.