app/views/use_restrictions/show.html.erb in enju_circulation-0.1.2 vs app/views/use_restrictions/show.html.erb in enju_circulation-0.2.0.beta.1

- old
+ new

@@ -21,10 +21,10 @@ </div> </div> <div id="submenu" class="ui-corner-all ui-widget-content"> <ul> - <%- if can? :update, @use_restriction -%> + <%- if policy(@use_restriction).update? -%> <li><%= link_to t('page.edit'), edit_use_restriction_path(@use_restriction) -%></li> <%- end -%> <li><%= back_to_index(flash[:page_info]) -%></li> </ul> </div>