Skip to content
This repository
Browse code

Fix HABTM syntax error in Ruby 1.8.x

  • Loading branch information...
commit 3b444eed71402cda92dae2d9d1c342253dd18f8c 1 parent 855fabc
Ernie Miller authored
4  activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
@@ -52,8 +52,8 @@ def delete_records(records, method)
52 52
 
53 53
             unless records == :all
54 54
               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)
57 57
               )
58 58
             end
59 59
 

0 notes on commit 3b444ee

Please sign in to comment.
Something went wrong with that request. Please try again.