From ff8fe662ef6ecdde8867b553cb5b60a23a93c152 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Mon, 17 Oct 2005 03:13:04 +0000 Subject: [PATCH] Use the more appropriate columns_hash to get the session data column size limit. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/session/active_record_store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_controller/session/active_record_store.rb b/actionpack/lib/action_controller/session/active_record_store.rb index 36896d36d8..a653947038 100644 --- a/actionpack/lib/action_controller/session/active_record_store.rb +++ b/actionpack/lib/action_controller/session/active_record_store.rb @@ -52,7 +52,7 @@ def reloadable? #:nodoc: end def data_column_size_limit - connection.columns(table_name).find {|column| column.name == 'data'}.limit + columns_hash['data'].limit end # Hook to set up sessid compatibility.