Exception: ActiveRecord::InverseOfAssociationNotFoundError

Inherits:
ActiveRecordError show all
Defined in:
activerecord/lib/active_record/associations.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(reflection, associated_class = nil) ⇒ InverseOfAssociationNotFoundError

Returns a new instance of InverseOfAssociationNotFoundError



12
13
14
# File 'activerecord/lib/active_record/associations.rb', line 12

def initialize(reflection, associated_class = nil)
  super("Could not find the inverse association for #{reflection.name} (#{reflection.options[:inverse_of].inspect} in #{associated_class.nil? ? reflection.class_name : associated_class.name})")
end