Method: AuthenticationController#destroy
- Defined in:
- app/controllers/authentication_controller.rb
#destroy ⇒ Object
delete /logout
22 23 24 25 26 27 |
# File 'app/controllers/authentication_controller.rb', line 22 def destroy deactivate_token if current_user cleanup_after_destroy redirect_to root_path end |