Class: InverseOf::InverseOfAssociationNotFoundError
- Inherits:
-
ActiveRecord::ActiveRecordError
- Object
- ActiveRecord::ActiveRecordError
- InverseOf::InverseOfAssociationNotFoundError
- Defined in:
- lib/inverse_of.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(reflection, associated_class = nil) ⇒ InverseOfAssociationNotFoundError
constructor
A new instance of InverseOfAssociationNotFoundError.
Constructor Details
#initialize(reflection, associated_class = nil) ⇒ InverseOfAssociationNotFoundError
Returns a new instance of InverseOfAssociationNotFoundError.
3 4 5 |
# File 'lib/inverse_of.rb', line 3 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 |