Fix bad class constant reference in disapproval counts

This commit is contained in:
Kira 2019-08-01 13:48:29 -07:00
parent af9d85721a
commit cef4d5df1d
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<% if (CurrentUser.can_approve_posts? || post.created_at < PostDisapproval.DELETION_THRESHOLD.ago) && disapprovals.length > 0 %>
<% if (CurrentUser.can_approve_posts? || post.created_at < PostDisapproval::DELETION_THRESHOLD.ago) && disapprovals.length > 0 %>
<% if disapprovals.map(&:reason).grep("borderline_relevancy").count > 0 %>
(relevancy: <%= disapprovals.map(&:reason).grep("borderline_relevancy").count %>)
<% end %>

View File

@ -1,4 +1,4 @@
<% if (CurrentUser.can_approve_posts? || post.created_at < PostDisapproval.DELETION_THRESHOLD.ago) && disapprovals.length > 0 %>
<% if (CurrentUser.can_approve_posts? || post.created_at < PostDisapproval::DELETION_THRESHOLD.ago) && disapprovals.length > 0 %>
<p>
It has been reviewed by <%= pluralize disapprovals.length, "approver" %>.