app/controllers/naf/log_parsers_controller.rb in naf-2.1.12 vs app/controllers/naf/log_parsers_controller.rb in naf-2.1.13

- old
+ new

@@ -22,7 +22,16 @@ else render json: "convertToJsonCallback(" + { success: false }.to_json + ")" end end + def download + job_log_downloader = Logical::Naf::LogParser::JobDownloader.new({ + 'record_id' => params[:record_id] + }) + logs = job_log_downloader.logs_for_download + "\n" + send_data logs, filename: "job_#{params[:record_id]}_log.txt", + type: "text/plain", disposition: 'attachment' + end + end end