From 8b8c1feab7a4fccfebf22c1ace3f44f2e68e23d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Mon, 4 Jan 2016 21:43:16 +0100 Subject: [PATCH] favors underscore for resource name resolution SpendingProposal becomes spending_proposal instead of spendingproposal --- app/views/shared/_errors.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_errors.html.erb b/app/views/shared/_errors.html.erb index 3ced01dbf..ac8abe7e2 100644 --- a/app/views/shared/_errors.html.erb +++ b/app/views/shared/_errors.html.erb @@ -8,7 +8,7 @@ <% if local_assigns[:message].present? %> <%= message %> <% else %> - <%= t("form.not_saved", resource: t("form.#{resource.class.to_s.downcase}")) %> + <%= t("form.not_saved", resource: t("form.#{resource.class.to_s.underscore}")) %> <% end %>