Sha256: b1c3735601c45e9e4e950ec45c000ebf3fc56b55c94cd232700a278e068588d1

Contents?: true

Size: 1.06 KB

Versions: 15

Compression:

Stored size: 1.06 KB

Contents

class GenericMailer < ActionMailer::Base

  def change_password(user)
    from       Headstart.configuration.mailer_sender
    recipients user.email
    subject    I18n.t(:change_password,
                      :scope   => [:headstart, :models, :headstart_mailer],
                      :default => "Change your password")
    body       :url => edit_user_password_url(user,
                       :token  => user.password_reset_token,
                       :escape => false)
  end
  
  def welcome(user)
    from       Headstart.configuration.mailer_sender
    recipients user.email
    subject    I18n.t(:welcome,
                      :scope   => [:headstart, :models, :headstart_mailer],
                      :default => "Welcome")
    body      :user => user
  end

  def confirmation(user)
    from       Headstart.configuration.mailer_sender
    recipients user.email
    subject    I18n.t(:confirmation,
                      :scope   => [:headstart, :models, :headstart_mailer],
                      :default => "Account confirmation")
    body      :user => user
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
headstart-0.7.0 app/models/generic_mailer.rb
headstart-0.6.2 app/models/generic_mailer.rb
headstart-0.6.1 app/models/generic_mailer.rb
headstart-0.6.0 app/models/generic_mailer.rb
headstart-0.5.5 app/models/generic_mailer.rb
headstart-0.5.4 app/models/generic_mailer.rb
headstart-0.5.3 app/models/generic_mailer.rb
headstart-0.5.2 app/models/generic_mailer.rb
headstart-0.5.1 app/models/generic_mailer.rb
headstart-0.5.0 app/models/generic_mailer.rb
headstart-0.4.2 app/models/generic_mailer.rb
headstart-0.4.1 app/models/generic_mailer.rb
headstart-0.4.0 app/models/generic_mailer.rb
headstart-0.3.0 app/models/generic_mailer.rb
headstart-0.1.0 app/models/generic_mailer.rb