aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikachu.com>2010-08-14 05:59:15 +0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-13 16:24:49 -0700
commita7eb8d97a44d65c68df2eed61a5375a8d8da32f1 (patch)
treed8fcd97bca363fcf83b1f14db46c29e601936090 /activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
parent1f250415fe7ca2657f9d54a851e084b725c2e8ef (diff)
downloadrails-a7eb8d97a44d65c68df2eed61a5375a8d8da32f1.tar.gz
rails-a7eb8d97a44d65c68df2eed61a5375a8d8da32f1.tar.bz2
rails-a7eb8d97a44d65c68df2eed61a5375a8d8da32f1.zip
Removing most of the symbol to proc usage in Active Record
This will hopefully make Active Record run a bit more faster.
Diffstat (limited to 'activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb')
-rw-r--r--activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb2
1 files changed, 1 insertions, 1 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 be68affb3e..4f9bd8f679 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
@@ -127,7 +127,7 @@ module ActiveRecord
def record_timestamp_columns(record)
if record.record_timestamps
- record.send(:all_timestamp_attributes).map(&:to_s)
+ record.send(:all_timestamp_attributes).map { |x| x.to_s }
else
[]
end