From c5ce12afdc56555c6b358969e1b41bdd99d8a29b Mon Sep 17 00:00:00 2001 From: Jason Taylor Date: Sun, 23 Oct 2022 22:00:14 +1100 Subject: [PATCH] Titleize the column not the user defined locale --- app/views/administrate/application/_collection.html.erb | 4 ++-- spec/features/show_page_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/administrate/application/_collection.html.erb b/app/views/administrate/application/_collection.html.erb index f455f01754..fafe8b01f4 100644 --- a/app/views/administrate/application/_collection.html.erb +++ b/app/views/administrate/application/_collection.html.erb @@ -33,8 +33,8 @@ to display a collection of resources in an HTML table. )) do %> <%= t( "helpers.label.#{collection_presenter.resource_name}.#{attr_name}", - default: resource_class.human_attribute_name(attr_name), - ).titleize %> + default: resource_class.human_attribute_name(attr_name).titleize, + ) %> <% if collection_presenter.ordered_by?(attr_name) %>