Skip to content

Commit b930ebd

Browse files
jsntv200pablobm
authored andcommitted
Titleize the column not the user defined locale
1 parent e0814ef commit b930ebd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/views/administrate/application/_collection.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ to display a collection of resources in an HTML table.
3333
)) do %>
3434
<%= t(
3535
"helpers.label.#{collection_presenter.resource_name}.#{attr_name}",
36-
default: resource_class.human_attribute_name(attr_name),
37-
).titleize %>
36+
default: resource_class.human_attribute_name(attr_name).titleize,
37+
) %>
3838
<% if collection_presenter.ordered_by?(attr_name) %>
3939
<span class="cell-label__sort-indicator cell-label__sort-indicator--<%= collection_presenter.ordered_html_class(attr_name) %>">
4040
<svg aria-hidden="true">

spec/features/show_page_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
end
238238

239239
it "displays translated labels in has_many collection partials" do
240-
custom_label = "Time Shipped"
240+
custom_label = "Time shipped"
241241
customer = create(:customer)
242242
create(:order, customer: customer)
243243

0 commit comments

Comments
 (0)