Skip to content

Commit

Permalink
slight performance improvement when grabbing an arel table
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jul 28, 2010
1 parent 9d10930 commit fe9d7ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/base.rb
Expand Up @@ -803,7 +803,7 @@ def sti_name
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
Expand Down

0 comments on commit fe9d7ab

Please sign in to comment.