Class: SolidStackWeb::HistoryController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SolidStackWeb::HistoryController
- Defined in:
- app/controllers/solid_stack_web/history_controller.rb
Constant Summary
Constants inherited from ApplicationController
ApplicationController::PERIOD_DURATIONS
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/solid_stack_web/history_controller.rb', line 5 def index respond_to do |format| format.html { @pagy, @jobs = pagy(filtered_scope) } format.csv do send_data history_csv(filtered_scope), filename: "job-history-#{Date.today}.csv", type: "text/csv", disposition: "attachment" end end end |