brainopia (owner)

Revisions

gist: 158281 Download_button fork
public
Public Clone URL: git://gist.github.com/158281.git
Embed All Files: show embed
template to generate a new session_store #
1
2
3
4
5
6
7
8
9
10
application_name = root.split('/').last
 
initializer 'session_store.rb', <<-END
ActionController::Base.session = {
  :key => '_#{application_name}_session',
  :secret => '#{ActiveSupport::SecureRandom.hex(64)}'
}
 
# ActionController::Base.session_store = :active_record_store
END