mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
slight performance improvement when grabbing an arel table
This commit is contained in:
parent
9d109302f1
commit
fe9d7abb39
1 changed files with 1 additions and 1 deletions
|
@ -803,7 +803,7 @@ module ActiveRecord #:nodoc:
|
||||||
end
|
end
|
||||||
|
|
||||||
def arel_table
|
def arel_table
|
||||||
@arel_table ||= Arel::Table.new(table_name, :engine => arel_engine)
|
@arel_table ||= Arel::Table.new(table_name, arel_engine)
|
||||||
end
|
end
|
||||||
|
|
||||||
def arel_engine
|
def arel_engine
|
||||||
|
|
Loading…
Reference in a new issue