views: fix deprecated keyword argument warnings in current_page?.

This commit is contained in:
evazion
2021-05-14 21:53:16 -05:00
parent ca8bfb9149
commit cb8cbed0ec
3 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@
<% if policy(@pool).update? %>
<%= subnav_link_to "Edit", edit_pool_path(@pool), "data-shortcut": "e" %>
<% end %>
<% if current_page?({ action: :edit }) %>
<% if current_page?(action: :edit) %>
<% if policy(@pool).undelete? %>
<%= subnav_link_to "Undelete", undelete_pool_path(@pool), :method => :post, :remote => true %>
<% elsif policy(@pool).destroy? %>