From 293cd9a1c6a3926a71d54924981d8a06c74a776b Mon Sep 17 00:00:00 2001 From: Wojtek Majewski Date: Sun, 28 Jun 2015 22:30:51 +0200 Subject: [PATCH] Fix invalid pluralization of Spree::RelationType --- app/views/spree/admin/relation_types/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/spree/admin/relation_types/index.html.erb b/app/views/spree/admin/relation_types/index.html.erb index dae7df6b..5f1f36be 100644 --- a/app/views/spree/admin/relation_types/index.html.erb +++ b/app/views/spree/admin/relation_types/index.html.erb @@ -1,5 +1,5 @@ <% content_for :page_title do %> - <%= Spree::RelationType.model_name.human(count: :many) %> + <%= plural_resource_name(Spree::RelationType) %> <% end %> <% content_for :page_actions do %> @@ -38,7 +38,7 @@ <% else %>
- <%= Spree.t(:no_resource_found, resource: Spree::RelationType.model_name.human(count: :many)) %>, + <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::RelationType)) %>, <%= link_to Spree.t(:add_one), spree.new_admin_relation_type_path %>!
<% end %>