The ActiveRecord session store was extracted from Rails into its own stone, as part of the Rails moves toward greater modularity. You need to include the gem as shown below in the Gemfile to gain access to the rake task and its related functionality.
gem 'activerecord-session_store', github: 'rails/activerecord-session_store'
See the README of the gem linked above for more instructions, but you still need to run the following command after installing gem
rails generate active_record:session_migration
and after that you need to change config / initializers / session_store.rb to look something like this
MyApp::Application.config.session_store :active_record_store, :key => '_Application_session'
or
Rails.application.config.session_store :active_record_store, :key => '_Application_session'
depending on the version of Rails.
deefour Jul 15 '13 at 14:03 2013-07-15 14:03
source share