comment policy and test updates

This commit is contained in:
Mark Moser committed 2017-02-14 10:17:42 -06:00
1 parent 906b62247b
commit a8c42af3de
5 files changed
+64 -19

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@
<div class="review-comments">
<h2 class="prft-heading">Comments</h2>
<%= render partial: 'comment', collection: @comments, locals: { test_hash: @candidate.test_hash } %>
<% if policy(QuizComment).create? %>
<% if policy(QuizComment).new? %>
<%= render partial: 'comment_form', locals: {comment: @comment, test_hash: @candidate.test_hash } %>
<% end %>
</div>