Exception: BabySqueel::PolymorphicNotSpecifiedError
- Inherits:
-
StandardError
- Object
- StandardError
- BabySqueel::PolymorphicNotSpecifiedError
- Defined in:
- lib/baby_squeel/errors.rb
Overview
:nodoc:
Constant Summary collapse
- MESSAGE =
"'%{association}' is a polymorphic association, therefore " \ "you must call #of when referencing the association. For example:" \ "\n\n %{association}.of(SomeModel)\n\n"
Instance Method Summary collapse
-
#initialize(association) ⇒ PolymorphicNotSpecifiedError
constructor
A new instance of PolymorphicNotSpecifiedError.
Constructor Details
#initialize(association) ⇒ PolymorphicNotSpecifiedError
Returns a new instance of PolymorphicNotSpecifiedError.
55 56 57 |
# File 'lib/baby_squeel/errors.rb', line 55 def initialize(association) super format(MESSAGE, association: association) end |