Module: ForemanOpenscap::ArfReportsControllerCommonExtensions

Extended by:
ActiveSupport::Concern
Included in:
Api::V2::Compliance::ArfReportsController, ArfReportsController
Defined in:
app/controllers/concerns/foreman_openscap/arf_reports_controller_common_extensions.rb

Instance Method Summary collapse

Instance Method Details

#format_filenameObject



4
5
6
# File 'app/controllers/concerns/foreman_openscap/arf_reports_controller_common_extensions.rb', line 4

def format_filename
  "#{@arf_report.asset.name}-#{@arf_report.reported_at.to_formatted_s(:number)}"
end