diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-04-16 22:45:59 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-04-16 22:45:59 +0200 |
commit | 07e9b02a36b12762210062afef15632b3a7564e2 (patch) | |
tree | e6a5628456eb263d0effa2c9d0ea06fae0473a00 /config/initializers | |
parent | 962857adbbf5e63c09abe333bf67502cd2b5edce (diff) | |
download | hmnoweb-07e9b02a36b12762210062afef15632b3a7564e2.tar.gz hmnoweb-07e9b02a36b12762210062afef15632b3a7564e2.tar.bz2 hmnoweb-07e9b02a36b12762210062afef15632b3a7564e2.zip |
Try to fix session mess by making data and session_id mass assignable.
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/session_store.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 1b9705c..7e1f190 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -4,3 +4,8 @@ # 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 |