aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-03-30 19:25:07 +0000
committerRick Olson <technoweenie@gmail.com>2006-03-30 19:25:07 +0000
commit58dd49a7ae13471b8f8e359286307853bfc22529 (patch)
tree0ddc7ba11e64f268f8be76a0d176ed6834e94343 /activerecord/lib/active_record
parentef4b8c237a3e2d0bc59f06c5696004dca27efe0a (diff)
downloadrails-58dd49a7ae13471b8f8e359286307853bfc22529.tar.gz
rails-58dd49a7ae13471b8f8e359286307853bfc22529.tar.bz2
rails-58dd49a7ae13471b8f8e359286307853bfc22529.zip
pass the correct reflection to HasManyThroughAssociationPolymorphicError
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/reflection.rb2
1 files changed, 1 insertions, 1 deletions
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