Class: ForemanInventoryUpload::UploadsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ForemanInventoryUpload::UploadsController
- Includes:
- InventoryUpload::ReportActions
- Defined in:
- app/controllers/foreman_inventory_upload/uploads_controller.rb
Instance Method Summary collapse
Methods included from InventoryUpload::ReportActions
#report_file, #start_report_generation
Instance Method Details
#download_file ⇒ Object
5 6 7 8 9 |
# File 'app/controllers/foreman_inventory_upload/uploads_controller.rb', line 5 def download_file filename, file = report_file(params[:organization_id]) send_file file, disposition: 'attachment', filename: filename end |