Class: Motor::SessionsController
- Inherits:
-
ApiBaseController
- Object
- ActionController::API
- ApiBaseController
- Motor::SessionsController
- 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
14 15 16 17 18 |
# File 'app/controllers/motor/sessions_controller.rb', line 14 def destroy session.clear head :ok end |
#show ⇒ Object
7 8 9 10 11 12 |
# File 'app/controllers/motor/sessions_controller.rb', line 7 def show render json: { current_user_email: current_user&.email, current_user_id: current_user&.id } end |