Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Sep 24, 2015
1 parent f729ad8 commit 7df467a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Authorization_with_Pundit/app/views/posts/_post.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<td><%= post.special? %></td>
<td><%= link_to 'Show', post %></td>
<td><%= link_to 'Edit', edit_post_path(post) %></td>
<% if true %>
<% if policy(post).destroy? %>
<td><%= link_to 'Destroy', post, method: :delete, data: { confirm: 'Are you sure?' } %></td>
<% end %>
</tr>

0 comments on commit 7df467a

Please sign in to comment.