From 717de65ce301cbf752385029cfb9945660086193 Mon Sep 17 00:00:00 2001 From: Jeremy Woertink Date: Thu, 22 Jul 2021 16:54:17 -0700 Subject: [PATCH] ... space... get it? (#1553) --- .../templates/resource/actions/{{folder_name}}/delete.cr.ecr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/gen/templates/resource/actions/{{folder_name}}/delete.cr.ecr b/tasks/gen/templates/resource/actions/{{folder_name}}/delete.cr.ecr index f0e791e77..12e88e298 100644 --- a/tasks/gen/templates/resource/actions/{{folder_name}}/delete.cr.ecr +++ b/tasks/gen/templates/resource/actions/{{folder_name}}/delete.cr.ecr @@ -1,6 +1,6 @@ class <%= pluralized_name %>::Delete < BrowserAction <%= route("Delete") %> do - <%= underscored_resource %> = <%= query_class %>.find(<%= resource_id_method_name %>) + <%= underscored_resource %> = <%= query_class %>.find(<%= resource_id_method_name %>) Delete<%= resource %>.delete(<%= underscored_resource %>) do |_operation, _deleted| flash.success = "Deleted the <%= underscored_resource %>" redirect Index