diff options
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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] |