diff options
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r-- | activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb | 4 |
1 files changed, 2 insertions, 2 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 1048c0b12e..e5da0d585c 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 @@ -52,8 +52,8 @@ module ActiveRecord unless records == :all condition = condition.and( - relation[reflection.association_foreign_key] - .in(records.map { |x| x.id }.compact) + relation[reflection.association_foreign_key]. + in(records.map { |x| x.id }.compact) ) end |