Exception: BabySqueel::AssociationComparisonNotSupportedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/baby_squeel/errors.rb

Overview

:nodoc:

Constant Summary collapse

MESSAGE =
"Querying association '%{name}' with '==' and '!=' " \
"is only supported for ActiveRecord >=5."

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ AssociationComparisonNotSupportedError

Returns a new instance of AssociationComparisonNotSupportedError.



71
72
73
# File 'lib/baby_squeel/errors.rb', line 71

def initialize(name)
  super format(MESSAGE, name: name)
end