Module: AlgoliaSearch::InstanceMethods
- Defined in:
- lib/algoliasearch-rails.rb
Overview
these are the instance methods included
Class Method Summary collapse
Instance Method Summary collapse
- #algolia_index!(synchronous = false) ⇒ Object
- #algolia_remove_from_index!(synchronous = false) ⇒ Object
Class Method Details
.included(base) ⇒ Object
608 609 610 611 612 613 |
# File 'lib/algoliasearch-rails.rb', line 608 def self.included(base) base.instance_eval do alias_method :index!, :algolia_index! unless method_defined? :index! alias_method :remove_from_index!, :algolia_remove_from_index! unless method_defined? :remove_from_index! end end |
Instance Method Details
#algolia_index!(synchronous = false) ⇒ Object
615 616 617 |
# File 'lib/algoliasearch-rails.rb', line 615 def algolia_index!(synchronous = false) self.class.algolia_index!(self, synchronous || algolia_synchronous?) end |
#algolia_remove_from_index!(synchronous = false) ⇒ Object
619 620 621 |
# File 'lib/algoliasearch-rails.rb', line 619 def algolia_remove_from_index!(synchronous = false) self.class.algolia_remove_from_index!(self, synchronous || algolia_synchronous?) end |