Created
May 4, 2011 14:42
-
-
Save toamitkumar/955331 to your computer and use it in GitHub Desktop.
extending devise sessions controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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