Class: ActiveRecord::HasManyThroughAssociationNotFoundError
- Inherits:
-
ActiveRecordError
- Object
- ActiveRecordError
- ActiveRecord::HasManyThroughAssociationNotFoundError
- Defined in:
- lib/active_record/associations.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(reflection) ⇒ HasManyThroughAssociationNotFoundError
constructor
A new instance of HasManyThroughAssociationNotFoundError.
- #message ⇒ Object
Constructor Details
#initialize(reflection) ⇒ HasManyThroughAssociationNotFoundError
Returns a new instance of HasManyThroughAssociationNotFoundError.
13 14 15 |
# File 'lib/active_record/associations.rb', line 13 def initialize(reflection) @reflection = reflection end |
Instance Method Details
#message ⇒ Object
17 18 19 |
# File 'lib/active_record/associations.rb', line 17 def "Could not find the association #{@reflection.[:through].inspect} in model #{@reflection.klass}" end |