Sha256: 8e841ca5d16009399f0886d4c985af7903feb53776c75dcdf210812b5b19ac3b

Contents?: true

Size: 836 Bytes

Versions: 6

Compression:

Stored size: 836 Bytes

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)
    content_type "text/html"
  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
    content_type "text/html"
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
headstart-0.11.2 app/models/generic_mailer.rb
headstart-0.11.1 app/models/generic_mailer.rb
headstart-0.9.2 app/models/generic_mailer.rb
headstart-0.9.1 app/models/generic_mailer.rb
headstart-0.9.0 app/models/generic_mailer.rb
headstart-0.8.0 app/models/generic_mailer.rb