Removes author from Proposal#users_to_notify

This commit is contained in:
María Checa
2018-05-21 18:49:13 +02:00
committed by decabeza
parent ad7166166c
commit a62b5c1492
3 changed files with 21 additions and 4 deletions

View File

@@ -205,7 +205,7 @@ class Proposal < ActiveRecord::Base
end
def users_to_notify
(voters + followers).uniq
(voters + followers).uniq - [author]
end
def self.proposals_orders(user)

View File

@@ -33,12 +33,16 @@
<%= activity.actionable.username %> (<%= activity.actionable.email %>)
<% when "Comment" %>
<%= activity.actionable.body %>
<% when "Newsletter" %>
<strong><%= activity.actionable.subject %></strong>
<% when "ProposalNotification" %>
<strong><%= activity.actionable.title %></strong>
<br>
<%= activity.actionable.body %>
<% else %>
<strong><%= activity.actionable.title %></strong>
<br>
<div class="proposal-description">
<%= activity.actionable.description %>
</div>
<%= activity.actionable.description %>
<% end %>
<td class="align-top">
<%= activity.user.name %> (<%= activity.user.email %>)