aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/has_many_through_association.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-07-20 00:34:09 +0000
committerRick Olson <technoweenie@gmail.com>2006-07-20 00:34:09 +0000
commit291adbd36181ab6766ea2d8f8c0f806c5d8ca422 (patch)
tree144dab6713e9fa2b398d2d5b8ac835507869aa03 /activerecord/lib/active_record/associations/has_many_through_association.rb
parentfcd489b4c2bcf766fb25ca6d09224b15dfe75454 (diff)
downloadrails-291adbd36181ab6766ea2d8f8c0f806c5d8ca422.tar.gz
rails-291adbd36181ab6766ea2d8f8c0f806c5d8ca422.tar.bz2
rails-291adbd36181ab6766ea2d8f8c0f806c5d8ca422.zip
fix association exception messages, fix them so the error messages actually display
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4615 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/associations/has_many_through_association.rb')
-rw-r--r--activerecord/lib/active_record/associations/has_many_through_association.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/has_many_through_association.rb b/activerecord/lib/active_record/associations/has_many_through_association.rb
index 037c375cde..c352a009d6 100644
--- a/activerecord/lib/active_record/associations/has_many_through_association.rb
+++ b/activerecord/lib/active_record/associations/has_many_through_association.rb
@@ -41,7 +41,7 @@ module ActiveRecord
end
def <<(*args)
- raise ActiveRecord::ReadOnlyAssociation, @reflection
+ raise ActiveRecord::ReadOnlyAssociation.new(@reflection)
end
[:push, :concat, :create, :build].each do |method|