diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-01-14 12:08:44 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-01-14 12:08:44 +0000 |
commit | b78458284bf0c7d5158181fd4d7e0a507f77edca (patch) | |
tree | d9dc51ddd9a55d1c451638ce30c63431803e7221 /activerecord/lib/active_record/associations | |
parent | 937eeab103a14bb4db61ec1841ad57e01636bf21 (diff) | |
download | rails-b78458284bf0c7d5158181fd4d7e0a507f77edca.tar.gz rails-b78458284bf0c7d5158181fd4d7e0a507f77edca.tar.bz2 rails-b78458284bf0c7d5158181fd4d7e0a507f77edca.zip |
Aggregate reflection klass works with nested :class_name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5923 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r-- | activerecord/lib/active_record/associations/association_proxy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/association_proxy.rb b/activerecord/lib/active_record/associations/association_proxy.rb index f84a2a89b7..010e4e396b 100644 --- a/activerecord/lib/active_record/associations/association_proxy.rb +++ b/activerecord/lib/active_record/associations/association_proxy.rb @@ -149,7 +149,7 @@ module ActiveRecord def raise_on_type_mismatch(record) unless record.is_a?(@reflection.klass) - raise ActiveRecord::AssociationTypeMismatch, "#{@reflection.class_name} expected, got #{record.class}" + raise ActiveRecord::AssociationTypeMismatch, "#{@reflection.klass} expected, got #{record.class}" end end |