Permalink
Browse files

Fix HABTM syntax error in Ruby 1.8.x

  • Loading branch information...
1 parent 855fabc commit 3b444eed71402cda92dae2d9d1c342253dd18f8c @ernie ernie committed May 18, 2012
@@ -52,8 +52,8 @@ def delete_records(records, method)
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

0 comments on commit 3b444ee

Please sign in to comment.