Skip to content

Commit

Permalink
Merge branch 'release/0.11.4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashnikovisme committed Dec 11, 2016
2 parents 199d60e + 1d4a51e commit 5a6d47f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/mailers/activity_lines/corporative/confession_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,11 @@ def confirm(confession, user)
@subject = subject(confession.class, :confirm)
mail from: sender_name, to: user.email, subject: @subject
end

def nominated(confession, user)
@user = user
@confession = confession
@subject = subject(confession.class, :nominated)
mail from: sender_name, to: user.email, subject: @subject
end
end
8 changes: 8 additions & 0 deletions lib/yaml/mail_messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@ messages:
subject: 'Отправленный вами вопрос на онлайн-конферерцию опубликован'
answer:
subject: 'Заданный вами вопрос на онлайн-конференцию получил ответ'
activity_lines/corporative/confession:
confirm:
subject: 'Ваше ходатайство было подтверждено руководителем корпоративных проектов МИЦ'
create:
subject: 'Добавлено ходатайство на премию Признание'
nominated:
subject: 'Ты номинирован на премию Признание!'

0 comments on commit 5a6d47f

Please sign in to comment.