Module: Sunspot::MongoMapper
- Defined in:
- lib/sunspot/mongomapper.rb,
lib/sunspot/mongomapper/railtie.rb
Defined Under Namespace
Modules: ActsAsMethods, ClassMethods Classes: DataAccessor, InstanceAdapter, Railtie
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/sunspot/mongomapper.rb', line 22 def self.included(base) base.class_eval do extend Sunspot::Rails::Searchable::ActsAsMethods extend Sunspot::MongoMapper::ActsAsMethods Sunspot::Adapters::DataAccessor.register(DataAccessor, base) Sunspot::Adapters::InstanceAdapter.register(InstanceAdapter, base) after_destroy :_remove_index after_save :_update_index end end |