Refactor MailTemplatesController#mails
This commit is contained in:
parent
9988444459
commit
41b3fa62ed
1 changed files with 7 additions and 2 deletions
|
@ -19,8 +19,13 @@ class Admin::MailTemplatesController < AdminController
|
||||||
private
|
private
|
||||||
|
|
||||||
def mails
|
def mails
|
||||||
%w(initiated received closed refused without_continuation)
|
[
|
||||||
.map { |name| @procedure.send(name + "_mail") }
|
@procedure.initiated_mail,
|
||||||
|
@procedure.received_mail,
|
||||||
|
@procedure.closed_mail,
|
||||||
|
@procedure.refused_mail,
|
||||||
|
@procedure.without_continuation_mail
|
||||||
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_the_right_mail type
|
def find_the_right_mail type
|
||||||
|
|
Loading…
Add table
Reference in a new issue