Exception: ActiveRecord::HasManyThroughAssociationNotFoundError

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(owner_class_name, reflection) ⇒ HasManyThroughAssociationNotFoundError

Returns a new instance of HasManyThroughAssociationNotFoundError.



20
21
22
# File 'lib/active_record/associations.rb', line 20

def initialize(owner_class_name, reflection)
  super("Could not find the association #{reflection.options[:through].inspect} in model #{owner_class_name}")
end