removes sending individual proposal notifications via email

This commit is contained in:
rgarcia
2016-06-15 10:43:02 +02:00
parent ce6072d17b
commit 28d12fe55b
13 changed files with 1 additions and 168 deletions

View File

@@ -13,9 +13,6 @@ class ProposalNotificationsController < ApplicationController
if @notification.save
@proposal.voters.each do |voter|
Notification.add(voter.id, @notification)
if voter.email_on_proposal_notification?
Mailer.proposal_notification(@notification, voter).deliver_later
end
end
redirect_to @notification, notice: I18n.t("flash.actions.create.proposal_notification")
else