aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorErnie Miller <ernie@erniemiller.org>2012-05-18 16:35:21 -0400
committerErnie Miller <ernie@erniemiller.org>2012-05-18 16:35:21 -0400
commit3b444eed71402cda92dae2d9d1c342253dd18f8c (patch)
tree29229ec3fdaf96a1dccc3dab404a9f4c38864b76 /activerecord/lib/active_record
parent855fabca669f1a57c70bfa7bfc396495018e4a5c (diff)
downloadrails-3b444eed71402cda92dae2d9d1c342253dd18f8c.tar.gz
rails-3b444eed71402cda92dae2d9d1c342253dd18f8c.tar.bz2
rails-3b444eed71402cda92dae2d9d1c342253dd18f8c.zip
Fix HABTM syntax error in Ruby 1.8.x
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb4
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