aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-03-14 22:22:34 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-03-14 22:22:45 -0700
commit425925b1c6433309fcbaa7242df39394b70280a6 (patch)
tree13b40a0a5e63d90a911955c374e1cbc433873f9a /lib
parent6c2e2ac6c77051c4e1d3e70f197f85df53935e76 (diff)
downloadrails-425925b1c6433309fcbaa7242df39394b70280a6.tar.gz
rails-425925b1c6433309fcbaa7242df39394b70280a6.tar.bz2
rails-425925b1c6433309fcbaa7242df39394b70280a6.zip
call the columns hash method
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/visitors/to_sql.rb6
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