app/views/administrate/application/_index_header.html.erb in administrate-0.17.0 vs app/views/administrate/application/_index_header.html.erb in administrate-0.18.0
- old
+ new
@@ -21,8 +21,8 @@
"administrate.actions.new_resource",
name: display_resource_name(page.resource_name, singular: true).downcase
),
[:new, namespace, page.resource_path.to_sym],
class: "button",
- ) if valid_action?(:new) && show_action?(:new, new_resource) %>
+ ) if accessible_action?(new_resource, :new) %>
</div>
</header>