aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/session_store.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-02-01 10:37:53 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-02-01 14:25:46 -0800
commit69600a9f97d2f678972500d8a741edc745833718 (patch)
tree587f3091d868afe3aa80eaaafe8c1e819166fa69 /activerecord/lib/active_record/session_store.rb
parent3cc2b77dc1cb4c1e5cfac68c7828e35a27415e0d (diff)
downloadrails-69600a9f97d2f678972500d8a741edc745833718.tar.gz
rails-69600a9f97d2f678972500d8a741edc745833718.tar.bz2
rails-69600a9f97d2f678972500d8a741edc745833718.zip
avoid column lookup on subclasses, keep column info cached as table_name => column_list
Diffstat (limited to 'activerecord/lib/active_record/session_store.rb')
-rw-r--r--activerecord/lib/active_record/session_store.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/session_store.rb b/activerecord/lib/active_record/session_store.rb
index 3400fd6ade..68d9f89edd 100644
--- a/activerecord/lib/active_record/session_store.rb
+++ b/activerecord/lib/active_record/session_store.rb
@@ -59,10 +59,12 @@ module ActiveRecord
end
def drop_table!
+ self.columns_hash = nil
connection.drop_table table_name
end
def create_table!
+ self.columns_hash = nil
connection.create_table(table_name) do |t|
t.string session_id_column, :limit => 255
t.text data_column_name