method
new
v6.1.7.7 -
Show latest stable
- Class:
ActiveRecord::HasManyThroughAssociationNotFoundError
new(owner_class = nil, reflection = nil)public
No documentation available.
# File activerecord/lib/active_record/associations.rb, line 82
def initialize(owner_class = nil, reflection = nil)
if owner_class && reflection
@owner_class = owner_class
@reflection = reflection
super("Could not find the association #{reflection.options[:through].inspect} in model #{owner_class.name}")
else
super("Could not find the association.")
end
end