From 7dd9121072149eb3551b561aa16c087652b45de9 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Thu, 25 Jan 2018 14:30:04 +0100 Subject: [PATCH] Actually return 404 when requested asset doesn't exist [SCI-1994] --- app/controllers/assets_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/assets_controller.rb b/app/controllers/assets_controller.rb index 247822342..41da9e9da 100644 --- a/app/controllers/assets_controller.rb +++ b/app/controllers/assets_controller.rb @@ -99,7 +99,7 @@ class AssetsController < ApplicationController def load_vars @asset = Asset.find_by_id(params[:id]) - render_404 unless @asset + return render_404 unless @asset step_assoc = @asset.step result_assoc = @asset.result