Method: ActiveRecord::InverseOfAssociationNotFoundError#initialize
- Defined in:
- lib/active_record/associations.rb
#initialize(reflection, associated_class = nil) ⇒ InverseOfAssociationNotFoundError
Returns a new instance of InverseOfAssociationNotFoundError.
14 15 16 |
# File 'lib/active_record/associations.rb', line 14 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 |