1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

pass the correct reflection to HasManyThroughAssociationPolymorphicError

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Rick Olson 2006-03-30 19:25:07 +00:00
parent ef4b8c237a
commit 58dd49a7ae

View file

@ -174,7 +174,7 @@ module ActiveRecord
end
if source_reflection.options[:polymorphic]
raise HasManyThroughAssociationPolymorphicError.new(class_name, @reflection, source_reflection)
raise HasManyThroughAssociationPolymorphicError.new(class_name, self, source_reflection)
end
end
end