aboutsummaryrefslogtreecommitdiffstats
path: root/config/initializers/session_store.rb
blob: 7e1f1900ff537368e10d7555dab777600a7f4aa9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# Be sure to restart your server when you modify this file.

# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
BetaWebApp::Application.config.session_store :active_record_store

# Make the data and session_id columns mass-assignable,
# hopefully fends off nasty session bugs,
# source: https://github.com/rails/activerecord-session_store/issues/6#issuecomment-26214581
ActiveRecord::SessionStore::Session.attr_accessible :data, :session_id