Skip to content

Instantly share code, notes, and snippets.

@simonlehmann
Created March 1, 2017 03:10
Show Gist options
  • Save simonlehmann/12e3aa3c6677df203727508aa896a998 to your computer and use it in GitHub Desktop.
Save simonlehmann/12e3aa3c6677df203727508aa896a998 to your computer and use it in GitHub Desktop.
Sign out all Devise users
# Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: '_myapp_name_session'
# Change :key (e.g: from _myapp_name_session to _myapp_name_sessions) and all users are logged out after server restart.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment