aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.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/connection_adapters/abstract/schema_definitions.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/connection_adapters/abstract/schema_definitions.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
index 9118ceb33c..2472403282 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
@@ -528,7 +528,7 @@ module ActiveRecord
# concatenated together. This string can then be prepended and appended to
# to generate the final SQL to create the table.
def to_sql
- @columns.map(&:to_sql) * ', '
+ @columns.map { |c| c.to_sql } * ', '
end
private