From b59619600fbbfb2cf6d7156fb4c21bb2c0cec955 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 11 Apr 2005 15:13:43 +0000 Subject: No conditions relevant here git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1145 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../active_record/associations/has_and_belongs_to_many_association.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb b/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb index 5ccac8e62b..eda6992243 100644 --- a/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb +++ b/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb @@ -51,7 +51,7 @@ module ActiveRecord # If no block is given, raise RecordNotFound. if ids.empty? - raise RecordNotFound, "Couldn't find #{@association_class.name} without an ID#{conditions}" + raise RecordNotFound, "Couldn't find #{@association_class.name} without an ID" # If using a custom finder_sql, scan the entire collection. elsif @options[:finder_sql] -- cgit v1.2.3