Module: Search::SolrDocument

Defined in:
lib/solr/search.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



41
42
43
44
45
46
# File 'lib/solr/search.rb', line 41

def self.included(receiver)
  receiver.extend ClassMethods
  receiver.send :include, InstanceMethods
  receiver.after_save :save_on_search_engine
  receiver.before_destroy :delete_from_search_engine
end