diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-11 16:00:16 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-11 16:00:16 -0700 |
commit | 48361010f28605debe070563679d3b2db265daed (patch) | |
tree | 43972c35d1230dd015b197b6e5dacaa569e43ad8 /lib/arel | |
parent | bcf73b8c482ef07dc6f037dd4acc41ebc2e36bec (diff) | |
download | rails-48361010f28605debe070563679d3b2db265daed.tar.gz rails-48361010f28605debe070563679d3b2db265daed.tar.bz2 rails-48361010f28605debe070563679d3b2db265daed.zip |
ivar lookup is slightly faster
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/engines/sql/formatters.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/arel/engines/sql/formatters.rb b/lib/arel/engines/sql/formatters.rb index 03e7deec00..da899902ff 100644 --- a/lib/arel/engines/sql/formatters.rb +++ b/lib/arel/engines/sql/formatters.rb @@ -14,15 +14,15 @@ module Arel end def quote_column_name name - engine.connection.quote_column_name name + @engine.connection.quote_column_name name end def quote_table_name name - engine.connection.quote_table_name name + @engine.connection.quote_table_name name end def quote value, column = nil - engine.connection.quote value, column + @engine.connection.quote value, column end end |