app/controllers/naf/log_viewer_controller.rb in naf-2.1.10 vs app/controllers/naf/log_viewer_controller.rb in naf-2.1.11

- old
+ new

@@ -1,9 +1,9 @@ module Naf class LogViewerController < Naf::ApplicationController - def index - if params['record_type'] == 'job' + def index + if params['record_type'] == 'job' @job = ::Naf::HistoricalJob.find_by_id(params['record_id'].to_i) @status = ::Logical::Naf::Job.new(@job).status @partial = 'job_logs' elsif params['record_type'] == 'runner' @runner = ::Naf::MachineRunner.find_by_id(params['record_id'].to_i)