From 58dd49a7ae13471b8f8e359286307853bfc22529 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Thu, 30 Mar 2006 19:25:07 +0000 Subject: pass the correct reflection to HasManyThroughAssociationPolymorphicError git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/reflection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index 1b1546fe65..40a5e5f2d1 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -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 -- cgit v1.2.3