diff options
author | Marcel Molina <marcel@vernix.org> | 2005-10-17 03:13:04 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2005-10-17 03:13:04 +0000 |
commit | ff8fe662ef6ecdde8867b553cb5b60a23a93c152 (patch) | |
tree | 6ca8720e95775319d47678d6f8fe814dabd3d262 /actionpack/lib | |
parent | 67b926d2b79582a7a453fe78b20f04991599b60f (diff) | |
download | rails-ff8fe662ef6ecdde8867b553cb5b60a23a93c152.tar.gz rails-ff8fe662ef6ecdde8867b553cb5b60a23a93c152.tar.bz2 rails-ff8fe662ef6ecdde8867b553cb5b60a23a93c152.zip |
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
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/session/active_record_store.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ class CGI 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. |