diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-04 14:52:05 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-04 18:14:59 -0800 |
commit | c94651f8c822f7c0778c03eb36bee5ca19f35911 (patch) | |
tree | af8a771b9c1b15d3d2c8a0adf4c5756fb34c8ee3 /activerecord/lib/active_record/connection_adapters/abstract | |
parent | 0cd42864e3dcba520980f952be9a09c01beddb03 (diff) | |
download | rails-c94651f8c822f7c0778c03eb36bee5ca19f35911.tar.gz rails-c94651f8c822f7c0778c03eb36bee5ca19f35911.tar.bz2 rails-c94651f8c822f7c0778c03eb36bee5ca19f35911.zip |
almost fisted
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb index db745e325f..63cdce5e4d 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb @@ -125,6 +125,13 @@ module ActiveRecord @primary_keys.clear end + # Clear out internal caches for table with +table_name+ + def clear_table_cache!(table_name) + @columns.delete table_name + @columns_hash.delete table_name + @primary_keys.delete table_name + end + # Retrieve the connection associated with the current thread, or call # #checkout to obtain one if necessary. # |