Module: Sunspot::Mongoid2::ActsAsMethods
- Defined in:
- lib/sunspot/mongoid2.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.
19 20 21 22 |
# File 'lib/sunspot/mongoid2.rb', line 19 def searchable(opt = {}, &block) super extend ClassMethods end |