Class: Dorsale::Flyboy::TaskMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/dorsale/flyboy/task_mailer.rb

Instance Method Summary collapse

Instance Method Details

#new_task(user, task) ⇒ Object



4
5
6
7
8
9
10
11
# File 'app/mailers/dorsale/flyboy/task_mailer.rb', line 4

def new_task(user, task)
  @author   = user
  @task = task
  mail(
    :to      => task.owner.email,
    :subject => t("emails.task.new.subject"),
  )
end

#term_email(task) ⇒ Object



13
14
15
16
17
18
19
# File 'app/mailers/dorsale/flyboy/task_mailer.rb', line 13

def term_email(task)
  @task = task
  mail(
    :to      => task.owner.email,
    :subject => t("emails.task.term.subject", task = task.name),
  )
end