Module: Sunspot::MongoMapper::ActsAsMethods
- Defined in:
- lib/sunspot/mongomapper.rb
Instance Method Summary collapse
-
#searchable(opt = {}, &block) ⇒ Object
ClassMethods isn’t loaded until searchable is called so we need call it, then extend our own ClassMethods.
Instance Method Details
#searchable(opt = {}, &block) ⇒ Object
ClassMethods isn’t loaded until searchable is called so we need call it, then extend our own ClassMethods.
36 37 38 39 |
# File 'lib/sunspot/mongomapper.rb', line 36 def searchable (opt = {}, &block) super extend ClassMethods end |