Adds email feature for proposals dashboard
This commit is contained in:
Juan Salvador Pérez García
2018-07-25 13:28:44 +02:00
parent 9b83291b16
commit 8876b285ce
31 changed files with 488 additions and 19 deletions

View File

@@ -0,0 +1,16 @@
class Dashboard::MailingController < Dashboard::BaseController
def index
authorize! :manage_mailing, proposal
end
def new
authorize! :manage_mailing, proposal
end
def create
authorize! :manage_mailing, proposal
Dashboard::Mailer.forward(proposal).deliver_later
redirect_to new_proposal_dashboard_mailing_path(proposal), flash: { notice: t("dashboard.mailing.create.sent") }
end
end