Class: Dorsale::Flyboy::TaskMailer
- Inherits:
-
ApplicationMailer
- Object
- ApplicationMailer
- ApplicationMailer
- Dorsale::Flyboy::TaskMailer
- Defined in:
- app/mailers/dorsale/flyboy/task_mailer.rb
Instance Method Summary collapse
Instance Method Details
#new_task(task, author) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/mailers/dorsale/flyboy/task_mailer.rb', line 2 def new_task(task, ) @task = task @locals = { :author => .to_s, :owner => task.owner.to_s, :task_url => flyboy_task_url(@task), :task_name => task.to_s, } mail( :to => task.owner.email, :subject => t("task_mailer.new_task.subject", @locals), ) end |
#term_email(task) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'app/mailers/dorsale/flyboy/task_mailer.rb', line 18 def term_email(task) @task = task @locals = { :owner => task.owner.to_s, :task_url => flyboy_task_url(@task), :task_name => task.to_s, } mail( :to => task.owner.email, :subject => t("task_mailer.term_email.subject", @locals), ) end |