Actually return 404 when requested asset doesn't exist [SCI-1994]

This commit is contained in:
Oleksii Kriuchykhin 2018-01-25 14:30:04 +01:00
parent ab2955c9bb
commit 7dd9121072

View file

@ -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