diff options
author | Ernie Miller <ernie@erniemiller.org> | 2012-05-18 16:35:21 -0400 |
---|---|---|
committer | Ernie Miller <ernie@erniemiller.org> | 2012-05-18 16:35:21 -0400 |
commit | 3b444eed71402cda92dae2d9d1c342253dd18f8c (patch) | |
tree | 29229ec3fdaf96a1dccc3dab404a9f4c38864b76 /activerecord | |
parent | 855fabca669f1a57c70bfa7bfc396495018e4a5c (diff) | |
download | rails-3b444eed71402cda92dae2d9d1c342253dd18f8c.tar.gz rails-3b444eed71402cda92dae2d9d1c342253dd18f8c.tar.bz2 rails-3b444eed71402cda92dae2d9d1c342253dd18f8c.zip |
Fix HABTM syntax error in Ruby 1.8.x
Diffstat (limited to 'activerecord')
-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 |