Class: Motor::SessionsController
- Inherits:
-
ApiBaseController
- Object
- ActionController::API
- ApiBaseController
- Motor::SessionsController
- Includes:
- ActionController::Cookies
- Defined in:
- app/controllers/motor/sessions_controller.rb
Instance Method Summary collapse
Methods included from CurrentAbility
Methods included from CurrentUserMethod
Instance Method Details
#destroy ⇒ Object
16 17 18 19 20 21 |
# File 'app/controllers/motor/sessions_controller.rb', line 16 def destroy session.clear .clear head :ok end |
#show ⇒ Object
9 10 11 12 13 14 |
# File 'app/controllers/motor/sessions_controller.rb', line 9 def show render json: { current_user_email: current_user&.email, current_user_id: current_user&.id } end |