Skip to content

Commit 3b444ee

Browse files
committed
Fix HABTM syntax error in Ruby 1.8.x
1 parent 855fabc commit 3b444ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def delete_records(records, method)
5252

5353
unless records == :all
5454
condition = condition.and(
55-
relation[reflection.association_foreign_key]
56-
.in(records.map { |x| x.id }.compact)
55+
relation[reflection.association_foreign_key].
56+
in(records.map { |x| x.id }.compact)
5757
)
5858
end
5959

0 commit comments

Comments
 (0)