Sha256: e831c7bb662cfe0518118ddd8f8ffd82de5752ab2f77838bea6f69c3b466a2de

Contents?: true

Size: 707 Bytes

Versions: 8

Compression:

Stored size: 707 Bytes

Contents

class Dorsale::Flyboy::TaskMailer < ::Dorsale::ApplicationMailer
  def new_task(task, author)
    @task = task

    @locals = {
      :author    => 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

  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
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dorsale-4.0.0 app/mailers/dorsale/flyboy/task_mailer.rb
dorsale-3.20.0 app/mailers/dorsale/flyboy/task_mailer.rb
dorsale-3.19.1 app/mailers/dorsale/flyboy/task_mailer.rb
dorsale-3.19.0 app/mailers/dorsale/flyboy/task_mailer.rb
dorsale-3.18.0 app/mailers/dorsale/flyboy/task_mailer.rb
dorsale-3.17.0 app/mailers/dorsale/flyboy/task_mailer.rb
dorsale-3.16.0 app/mailers/dorsale/flyboy/task_mailer.rb
dorsale-3.15.0 app/mailers/dorsale/flyboy/task_mailer.rb