Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix HABTM syntax error in Ruby 1.8.x

  • Loading branch information...
commit 3b444eed71402cda92dae2d9d1c342253dd18f8c 1 parent 855fabc
@ernie ernie authored
View
4 activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.