Skip to content

Instantly share code, notes, and snippets.

@toamitkumar
Created May 4, 2011 14:42
Show Gist options
  • Save toamitkumar/955331 to your computer and use it in GitHub Desktop.
Save toamitkumar/955331 to your computer and use it in GitHub Desktop.
extending devise sessions controller
class SessionsController < Devise::SessionsController
def destroy
reset_session
super
end
end
# In your routes
devise_for :users do
get "/users/sign_out", :to => "sessions#destroy", :as => "destroy_user_session"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment