提交 58dd49a7 编写于 作者: R Rick Olson

pass the correct reflection to HasManyThroughAssociationPolymorphicError

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 ef4b8c23
......@@ -174,7 +174,7 @@ def check_validity!
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册