Exception: ActiveRecord::EagerLoadPolymorphicError
- Inherits:
-
ActiveRecordError
- Object
- StandardError
- ActiveRecordError
- ActiveRecord::EagerLoadPolymorphicError
- Defined in:
- lib/active_record/associations.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(reflection) ⇒ EagerLoadPolymorphicError
constructor
A new instance of EagerLoadPolymorphicError.
Constructor Details
#initialize(reflection) ⇒ EagerLoadPolymorphicError
Returns a new instance of EagerLoadPolymorphicError.
77 78 79 |
# File 'lib/active_record/associations.rb', line 77 def initialize(reflection) super("Cannot eagerly load the polymorphic association #{reflection.name.inspect}") end |