Method: Sunspot::Rails::Searchable::ClassMethods.extended
- Defined in:
- lib/sunspot/rails/searchable.rb
.extended(base) ⇒ Object
:nodoc:
103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/sunspot/rails/searchable.rb', line 103 def self.extended(base) #:nodoc: class <<base alias_method :search, :solr_search unless method_defined? :search alias_method :search_ids, :solr_search_ids unless method_defined? :search_ids alias_method :remove_all_from_index, :solr_remove_all_from_index unless method_defined? :remove_all_from_index alias_method :remove_all_from_index!, :solr_remove_all_from_index! unless method_defined? :remove_all_from_index! alias_method :reindex, :solr_reindex unless method_defined? :reindex alias_method :index, :solr_index unless method_defined? :index alias_method :index_orphans, :solr_index_orphans unless method_defined? :index_orphans alias_method :clean_index_orphans, :solr_clean_index_orphans unless method_defined? :clean_index_orphans end end |