Class: CommandTower::Me::AuditEventsController
Constant Summary
ApplicationController::AUTHENTICATION_EXPIRE_HEADER, ApplicationController::AUTHENTICATION_HEADER, ApplicationController::AUTHENTICATION_WITH_RESET
Instance Method Summary
collapse
#authenticate_user!, #authenticate_user_without_email_verification!, #authorize_user!, #current_user, #safe_boolean
Instance Method Details
#index ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'app/controllers/command_tower/me/audit_events_controller.rb', line 12
def index
deserialized = CommandTower::Deserializers::Audit::Events::UserListDeserializer.call(params)
return render_deserializer_errors unless deserialized.success?
render_application_result(
CommandTower::Workflows::Audit::Events::ListForUserWorkflow.call(
user: current_user,
limit: deserialized.input.limit,
offset: deserialized.input.offset,
actions: deserialized.input.actions,
occurred_after: deserialized.input.occurred_after,
occurred_before: deserialized.input.occurred_before,
subject_types: deserialized.input.subject_types
)
)
end
|