Skip to content

Commit

Permalink
removed InstanceMethods module scope due to deprecation warning in Ra…
Browse files Browse the repository at this point in the history
…ils 3.2+
  • Loading branch information
Hck committed Feb 9, 2012
1 parent 417e6dd commit 31b55e9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/mongoid_search/mongoid_search.rb
Expand Up @@ -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
Expand Down

0 comments on commit 31b55e9

Please sign in to comment.