app/views/administrate/application/_collection.html.erb in administrate-0.14.0 vs app/views/administrate/application/_collection.html.erb in administrate-0.15.0
- old
+ new
@@ -31,10 +31,10 @@
<%= link_to(sanitized_order_params(page, collection_field_name).merge(
collection_presenter.order_params_for(attr_name, key: collection_field_name)
)) do %>
<%= t(
"helpers.label.#{collection_presenter.resource_name}.#{attr_name}",
- default: attr_name.to_s,
+ default: resource_class.human_attribute_name(attr_name),
).titleize %>
<% if collection_presenter.ordered_by?(attr_name) %>
<span class="cell-label__sort-indicator cell-label__sort-indicator--<%= collection_presenter.ordered_html_class(attr_name) %>">
<svg aria-hidden="true">
<use xlink:href="#icon-up-caret" />