aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/association_scope.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-03-14 22:42:12 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-03-14 22:45:46 -0700
commit8d3e5c8c5200880a66abef3fd2f45104e65732e9 (patch)
tree574e92afc21fd5a7d98d88a02f328083c52ec6b8 /activerecord/lib/active_record/associations/association_scope.rb
parenta0dfd84440f28d2862b7eb7ea340ca28d98fb23f (diff)
downloadrails-8d3e5c8c5200880a66abef3fd2f45104e65732e9.tar.gz
rails-8d3e5c8c5200880a66abef3fd2f45104e65732e9.tar.bz2
rails-8d3e5c8c5200880a66abef3fd2f45104e65732e9.zip
hide more data in the schema cache
Diffstat (limited to 'activerecord/lib/active_record/associations/association_scope.rb')
-rw-r--r--activerecord/lib/active_record/associations/association_scope.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/association_scope.rb b/activerecord/lib/active_record/associations/association_scope.rb
index c5fb1fe2c7..a9525436fb 100644
--- a/activerecord/lib/active_record/associations/association_scope.rb
+++ b/activerecord/lib/active_record/associations/association_scope.rb
@@ -22,7 +22,7 @@ module ActiveRecord
private
def column_for(table_name, column_name)
- columns = alias_tracker.connection.schema_cache.columns_hash[table_name]
+ columns = alias_tracker.connection.schema_cache.columns_hash(table_name)
columns[column_name]
end