Module: Sunspot::Mongoid::ActsAsMethods
- Defined in:
- lib/sunspot/mongoid.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.
31 32 33 34 |
# File 'lib/sunspot/mongoid.rb', line 31 def searchable (opt = {}, &block) super extend ClassMethods end |