Exception: ArelOperators::RelationMismatch

Inherits:
StandardError
  • Object
show all
Defined in:
lib/arel_operators/operators.rb

Instance Method Summary collapse

Constructor Details

#initialize(expected_class) ⇒ RelationMismatch

Returns a new instance of RelationMismatch.



61
62
63
# File 'lib/arel_operators/operators.rb', line 61

def initialize(expected_class)
  super("Invalid class for operation. Expected #{expected_class}")
end