class Inferno::Web::Controllers::TestRuns::Show
Public Instance Methods
call(params)
click to toggle source
# File lib/inferno/apps/web/controllers/test_runs/show.rb, line 6 def call(params) test_run = repo.find(params[:id]) halt 404 if test_run.nil? if params[:include_results] == 'true' results_repo = Inferno::Repositories::Results.new test_run.results = if params[:after].present? results_repo.test_run_results_after(test_run_id: test_run.id, after: Time.parse(params[:after])) else repo.results_for_test_run(test_run.id) end end self.body = serialize(test_run) end