Class: SolidQueueWeb::AuditController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SolidQueueWeb::AuditController
- Defined in:
- app/controllers/solid_queue_web/audit_controller.rb
Constant Summary
Constants inherited from ApplicationController
SolidQueueWeb::ApplicationController::PERIOD_DURATIONS, SolidQueueWeb::ApplicationController::STAGGER_INTERVALS
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/solid_queue_web/audit_controller.rb', line 5 def index scope = audit_scope respond_to do |format| format.html { @pagy, @audit_events = pagy(scope) } format.csv do send_data audit_csv(scope), filename: "audit-log-#{Date.today}.csv", type: "text/csv", disposition: "attachment" end end end |