From 291adbd36181ab6766ea2d8f8c0f806c5d8ca422 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Thu, 20 Jul 2006 00:34:09 +0000 Subject: 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 --- .../lib/active_record/associations/has_many_through_association.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/associations/has_many_through_association.rb') 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| -- cgit v1.2.3