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.