Class: Caboose::LogoutController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Caboose::LogoutController
- Defined in:
- app/controllers/caboose/logout_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /logout.
Methods inherited from ApplicationController
#before_action, #before_before_action, #logged_in?, #logged_in_user, #login_user, #reject_param, #user_is_allowed, #validate_cookie, #validate_token, #var, #verify_logged_in
Instance Method Details
#index ⇒ Object
GET /logout
4 5 6 7 8 |
# File 'app/controllers/caboose/logout_controller.rb', line 4 def index .delete(:caboose_user_id) reset_session redirect_to "/" end |