aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-27 21:05:11 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-27 21:05:11 -0700
commitfe9d7abb3983605464b74aab58a25beeb40d7d78 (patch)
treeaa24e7ef616603913e092effbafe0238b7a0900f /activerecord/lib/active_record/base.rb
parent9d109302f139a23d18de605454074777b995e4c4 (diff)
downloadrails-fe9d7abb3983605464b74aab58a25beeb40d7d78.tar.gz
rails-fe9d7abb3983605464b74aab58a25beeb40d7d78.tar.bz2
rails-fe9d7abb3983605464b74aab58a25beeb40d7d78.zip
slight performance improvement when grabbing an arel table
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r--activerecord/lib/active_record/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 5898ec3732..391c287fe4 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -803,7 +803,7 @@ module ActiveRecord #:nodoc:
end
def arel_table
- @arel_table ||= Arel::Table.new(table_name, :engine => arel_engine)
+ @arel_table ||= Arel::Table.new(table_name, arel_engine)
end
def arel_engine