Class: DashOverlord::UseCases::V1::Users::ShowCurrentUser::FindCurrentUser
- Defined in:
- lib/dash_overlord/use_cases/v1/users/show_current_user/find_current_user.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
context_reader, #final, #initialize, perform, target, #target_valid?
Constructor Details
This class inherits a constructor from DashOverlord::UseCases::Base
Instance Method Details
#perform ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/dash_overlord/use_cases/v1/users/show_current_user/find_current_user.rb', line 8 def perform invoke! GetCurrentUser return if context.current_user.present? failure!(:unauthorized, I18n.t('v1.users.not_logged_in')) end |