app/views/administrate/application/_collection.html.erb in administrate-0.17.0 vs app/views/administrate/application/_collection.html.erb in administrate-0.18.0

- old
+ new

@@ -23,11 +23,11 @@ <tr> <% collection_presenter.attribute_types.each do |attr_name, attr_type| %> <th class="cell-label cell-label--<%= attr_type.html_class %> cell-label--<%= collection_presenter.ordered_html_class(attr_name) %> - cell-label--<%= "#{resource_name}_#{attr_name}" %>" + cell-label--<%= "#{collection_presenter.resource_name}_#{attr_name}" %>" scope="col" role="columnheader" aria-sort="<%= sort_order(collection_presenter.ordered_html_class(attr_name)) %>"> <%= link_to(sanitized_order_params(page, collection_field_name).merge( collection_presenter.order_params_for(attr_name, key: collection_field_name) @@ -57,16 +57,16 @@ </thead> <tbody> <% resources.each do |resource| %> <tr class="js-table-row" - <% if show_action? :show, resource %> + <% if accessible_action?(resource, :show) %> <%= %(tabindex=0 role=link data-url=#{polymorphic_path([namespace, resource])}) %> <% end %> > <% collection_presenter.attributes_for(resource).each do |attribute| %> <td class="cell-data cell-data--<%= attribute.html_class %>"> - <% if show_action? :show, resource -%> + <% if accessible_action?(resource, :show) -%> <a href="<%= polymorphic_path([namespace, resource]) -%>" tabindex="-1" class="action-show" > <%= render_field attribute %>