Class: CommandTower::Admin::Audit::EventsController
- Inherits:
-
CommandTower::Admin::ApplicationController
- Object
- CommandTower::ApplicationController
- CommandTower::Admin::ApplicationController
- CommandTower::Admin::Audit::EventsController
- Defined in:
- app/controllers/command_tower/admin/audit/events_controller.rb
Instance Method Summary collapse
Instance Method Details
#filter_options ⇒ Object
42 43 44 45 46 |
# File 'app/controllers/command_tower/admin/audit/events_controller.rb', line 42 def render_application_result( CommandTower::Workflows::Audit::Events::FilterOptionsForAdminWorkflow.call ) end |
#index ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'app/controllers/command_tower/admin/audit/events_controller.rb', line 7 def index deserialized = CommandTower::Deserializers::Audit::Events::AdminListDeserializer.call(params) return render_deserializer_errors unless deserialized.success? render_application_result( CommandTower::Workflows::Audit::Events::ListForAdminWorkflow.call( 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, affected_user_id: deserialized.input.affected_user_id, actor_user_id: deserialized.input.actor_user_id, originating_administrator_id: deserialized.input.originating_administrator_id, attribution_mode: deserialized.input.attribution_mode, user: current_user, scope_value: deserialized.input.scope_value ) ) end |
#show ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'app/controllers/command_tower/admin/audit/events_controller.rb', line 29 def show deserialized = CommandTower::Deserializers::Audit::Events::ShowDeserializer.call(params) return render_deserializer_errors unless deserialized.success? render_application_result( CommandTower::Workflows::Audit::Events::ShowForAdminWorkflow.call( id: deserialized.input.id, user: current_user, scope_value: deserialized.input.scope_value ) ) end |