From 44a63ae1c394733da7de914055e0be6a9421d01a Mon Sep 17 00:00:00 2001 From: kara Diaby Date: Fri, 28 Feb 2020 16:33:07 +0100 Subject: [PATCH] fix attestation template error case --- app/controllers/admin/attestation_templates_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/attestation_templates_controller.rb b/app/controllers/admin/attestation_templates_controller.rb index d1eff3ba5..4306de5a9 100644 --- a/app/controllers/admin/attestation_templates_controller.rb +++ b/app/controllers/admin/attestation_templates_controller.rb @@ -48,7 +48,7 @@ class Admin::AttestationTemplatesController < AdminController render 'admin/attestation_templates/show', formats: [:pdf] else - flash.alert = attestation_template.errors.full_messages.join('
') + flash.alert = attestation.errors.full_messages.join('
') end end