From e8592d911d1e77376202d568bc35e389e225568b Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Thu, 5 Nov 2020 10:04:27 +0100 Subject: [PATCH] Fix markup --- 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 a6259e650..af44ef7c0 100644 --- a/app/controllers/assets_controller.rb +++ b/app/controllers/assets_controller.rb @@ -178,7 +178,7 @@ class AssetsController < ApplicationController def destroy if @asset.destroy - render json: { flash: I18n.t("assets.file_deleted", file_name: @asset.file_name ) } + render json: { flash: I18n.t('assets.file_deleted', file_name: @asset.file_name ) } else render json: {}, status: :unprocessable_entity end