Module: Elastic::Railties::IndexableRecord
- Defined in:
- lib/elastic/railties/indexable_record.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(_base) ⇒ Object
3 4 5 |
# File 'lib/elastic/railties/indexable_record.rb', line 3 def self.included(_base) _base.extend ClassMethods end |
Instance Method Details
#index_later ⇒ Object
37 38 39 |
# File 'lib/elastic/railties/indexable_record.rb', line 37 def index_later self.class.constantized_index_class.index_later self end |
#index_now ⇒ Object
45 46 47 |
# File 'lib/elastic/railties/indexable_record.rb', line 45 def index_now self.class.constantized_index_class.index self end |
#unindex_later ⇒ Object
41 42 43 |
# File 'lib/elastic/railties/indexable_record.rb', line 41 def unindex_later self.class.constantized_index_class.delete_later self end |
#unindex_now ⇒ Object
49 50 51 |
# File 'lib/elastic/railties/indexable_record.rb', line 49 def unindex_now self.class.constantized_index_class.delete self end |