Class: Chewy::Strategy::Base
Overview
Instance Method Summary collapse
-
#leave ⇒ Object
This method called when strategy pops from the strategies stack.
- #name ⇒ Object
-
#update(type, objects, options = {}) ⇒ Object
This method called when some model tries to update index.
Instance Method Details
#leave ⇒ Object
This method called when strategy pops from the strategies stack
23 24 |
# File 'lib/chewy/strategy/base.rb', line 23 def leave end |
#name ⇒ Object
11 12 13 |
# File 'lib/chewy/strategy/base.rb', line 11 def name self.class.name.demodulize.underscore.to_sym end |
#update(type, objects, options = {}) ⇒ Object
This method called when some model tries to update index
16 17 18 |
# File 'lib/chewy/strategy/base.rb', line 16 def update type, objects, = {} raise UndefinedUpdateStrategy.new(type) end |