Permalink
Browse files

Merge pull request #32 from hck/master

removed InstanceMethods module scope due to deprecation warning in Rails 3.2+
  • Loading branch information...
2 parents 417e6dd + 31b55e9 commit e493a9e5b8a0e5d7d989ff4be7693920822335c5 @mauriciozaffari mauriciozaffari committed Feb 9, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 lib/mongoid_search/mongoid_search.rb
@@ -97,11 +97,8 @@ def index_keywords!
end
end
- module InstanceMethods #:nodoc:
- # Indexes the document keywords
- def index_keywords!
- update_attribute(:_keywords, set_keywords)
- end
+ def index_keywords!
+ update_attribute(:_keywords, set_keywords)
end
private

0 comments on commit e493a9e

Please sign in to comment.