Class: ActiveRecord::EagerLoadPolymorphicError
- Inherits:
-
ActiveRecordError
- Object
- 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.
- #message ⇒ Object
Constructor Details
#initialize(reflection) ⇒ EagerLoadPolymorphicError
Returns a new instance of EagerLoadPolymorphicError.
60 61 62 |
# File 'lib/active_record/associations.rb', line 60 def initialize(reflection) @reflection = reflection end |
Instance Method Details
#message ⇒ Object
64 65 66 |
# File 'lib/active_record/associations.rb', line 64 def "Can not eagerly load the polymorphic association #{@reflection.name.inspect}" end |