Exception: Chewy::UndefinedUpdateStrategy

Inherits:
Error
  • Object
show all
Defined in:
lib/chewy/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ UndefinedUpdateStrategy

Returns a new instance of UndefinedUpdateStrategy.



15
16
17
18
19
20
# File 'lib/chewy/errors.rb', line 15

def initialize type
  super <<-MESSAGE
Index update strategy is undefined in current context.
Please wrap your code with `Chewy.strategy(:strategy_name) block.`
  MESSAGE
end