diff options
author | Prem Sichanugrist <s@sikachu.com> | 2010-08-14 05:59:15 +0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-08-14 13:17:31 +0200 |
commit | 6a14eee918f6004f3d2eb3e1f93180deb41015b5 (patch) | |
tree | 68d31fad8a5588a779cefec20f81d664cfa57f61 /activerecord/lib/active_record/associations | |
parent | cfbfb86730719f31e42a1a177a05e1745dde934b (diff) | |
download | rails-6a14eee918f6004f3d2eb3e1f93180deb41015b5.tar.gz rails-6a14eee918f6004f3d2eb3e1f93180deb41015b5.tar.bz2 rails-6a14eee918f6004f3d2eb3e1f93180deb41015b5.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')
-rw-r--r-- | activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb | 2 |
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 |