Class: CommandTower::Services::Admin::Users::SetEmailValidated
- Inherits:
-
CommandTower::Services::ApplicationService
- Object
- CommandTower::ServiceBase
- CommandTower::Services::ApplicationService
- CommandTower::Services::Admin::Users::SetEmailValidated
- Defined in:
- app/services/command_tower/services/admin/users.rb
Constant Summary
Constants inherited from CommandTower::ServiceBase
CommandTower::ServiceBase::ON_ARGUMENT_VALIDATION
Instance Method Summary collapse
Methods inherited from CommandTower::Services::ApplicationService
Methods included from Transactional
#fail_transaction!, #transaction
Methods inherited from CommandTower::ServiceBase
#command_tower_lifecycle, inherited, #internal_validate, #service_lifecycle_error_codes, #service_lifecycle_log_level, #validate!
Methods included from Logging::LifecycleDeclaration
Methods included from Execution::ContextAccess
#audit, #execution_context, #log_debug, #log_error, #log_info, #log_warn, #publish_event
Methods included from ArgumentValidation
Methods included from CommandTower::ServiceLogging
Instance Method Details
#call ⇒ Object
249 250 251 252 253 254 255 256 257 258 259 |
# File 'app/services/command_tower/services/admin/users.rb', line 249 def call if user.email_validated == email_validated context.user = user context.changed = false return end user.update!(email_validated:) context.user = user context.changed = true end |