Class: CommandTower::Services::Audit::Events::Project
- Inherits:
-
CommandTower::Services::ApplicationService
- Object
- CommandTower::ServiceBase
- CommandTower::Services::ApplicationService
- CommandTower::Services::Audit::Events::Project
- Defined in:
- app/services/command_tower/services/audit/events.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
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'app/services/command_tower/services/audit/events.rb', line 129 def call changes = duplicate_hash(event.change_set) mask_sensitive_changes!(changes) context.projection = { id: event.id, event_name: event.action, event_label: registry_label_for(event.action), occurred_at: event.occurred_at, attribution_mode: event.attribution_mode, actor_user_id: event.actor_user_id, affected_user_id: event.affected_user_id, subject_type: event.subject_type, subject_id: event.subject_id, subject_label: event.subject_label, impersonation_active: event.impersonation_active, originating_administrator_id: event.originating_administrator_id, changes:, metadata: duplicate_hash(event.) } end |