Exception: ActiveRecord::InverseOfAssociationNotFoundError
- Inherits:
-
ActiveRecordError
- Object
- StandardError
- ActiveRecordError
- ActiveRecord::InverseOfAssociationNotFoundError
- Defined in:
- activerecord/lib/active_record/associations.rb
Overview
:nodoc:
Instance Method Summary (collapse)
-
- (InverseOfAssociationNotFoundError) initialize(reflection, associated_class = nil)
constructor
A new instance of InverseOfAssociationNotFoundError.
Constructor Details
- (InverseOfAssociationNotFoundError) initialize(reflection, associated_class = nil)
A new instance of InverseOfAssociationNotFoundError
10 11 12 |
# File 'activerecord/lib/active_record/associations.rb', line 10 def initialize(reflection, associated_class = nil) super("Could not find the inverse association for #{reflection.name} (#{reflection.[:inverse_of].inspect} in #{associated_class.nil? ? reflection.class_name : associated_class.name})") end |