diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-03-14 22:22:34 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-03-14 22:22:45 -0700 |
commit | 425925b1c6433309fcbaa7242df39394b70280a6 (patch) | |
tree | 13b40a0a5e63d90a911955c374e1cbc433873f9a /lib/arel/visitors | |
parent | 6c2e2ac6c77051c4e1d3e70f197f85df53935e76 (diff) | |
download | rails-425925b1c6433309fcbaa7242df39394b70280a6.tar.gz rails-425925b1c6433309fcbaa7242df39394b70280a6.tar.bz2 rails-425925b1c6433309fcbaa7242df39394b70280a6.zip |
call the columns hash method
Diffstat (limited to 'lib/arel/visitors')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index 050a9b2e63..d0a05fac7e 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -147,11 +147,11 @@ key on UpdateManager using UpdateManager#key= return nil unless table_exists? table - column_cache[table][name] + column_cache(table)[name] end - def column_cache - @schema_cache.columns_hash + def column_cache(table) + @schema_cache.columns_hash(table) end def visit_Arel_Nodes_Values o |