Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brainopia/158281 to your computer and use it in GitHub Desktop.
Save brainopia/158281 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment