sends unfeasible budget investment

This commit is contained in:
rgarcia
2017-01-14 17:02:33 +01:00
parent 11a8086599
commit 68bf119c18
6 changed files with 66 additions and 2 deletions

View File

@@ -82,6 +82,15 @@ class Mailer < ApplicationMailer
end
end
def budget_investment_unfeasible(investment)
@investment = investment
@author = investment.author
with_user(@author) do
mail(to: @author.email, subject: t('mailers.budget_investment_unfeasible.subject', code: @investment.code))
end
end
private
def with_user(user, &block)