Exception: Chewy::InvalidJoinFieldType

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

Instance Method Summary collapse

Constructor Details

#initialize(join_field_type, join_field_name, relations) ⇒ InvalidJoinFieldType

Returns a new instance of InvalidJoinFieldType.



35
36
37
# File 'lib/chewy/errors.rb', line 35

def initialize(join_field_type, join_field_name, relations)
  super("`#{join_field_type}` set for the join field `#{join_field_name}` is not on the :relations list (#{relations})")
end