Skip to content

Commit

Permalink
replaced "can?" helper
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Jan 20, 2015
1 parent 166b2e2 commit 80d4b80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/inter_library_loans/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<%= l(inter_library_loan.shipped_at) if inter_library_loan.shipped_at -%><br />
<%= l(inter_library_loan.received_at) if inter_library_loan.received_at -%>
</td>
<%- if can? :destroy, inter_library_loan -%>
<%- if policy(inter_library_loan).destroy? -%>
<td>
<%= link_to t('page.show'), inter_library_loan -%>
<%= link_to t('page.edit'), edit_inter_library_loan_path(inter_library_loan) -%>
Expand All @@ -43,7 +43,7 @@

<div id="submenu" class="ui-corner-all ui-widget-content">
<ul>
<%- if can? :create, InterLibraryLoan -%>
<%- if policy(InterLibraryLoan).create? -%>
<li><%= link_to t('page.new', :model => t('activerecord.models.inter_library_loan')), new_inter_library_loan_path -%></li>
<%- end -%>
</ul>
Expand Down

0 comments on commit 80d4b80

Please sign in to comment.