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 for current context.
  Please wrap your code with `Chewy.strategy(:strategy_name) block.`
  MESSAGE
end