Sha256: d3c5c2e1caee76908c7549a16560e72db8ca7ca3179cf8896cb31441bb635991

Contents?: true

Size: 420 Bytes

Versions: 13

Compression:

Stored size: 420 Bytes

Contents

class Admin::Mailer < ActionMailer::Base

  default :from => Typus.mailer_sender

  def reset_password_instructions(user, host)
    @user = user
    @token_url = admin_account_url(user.token, :host => host)

    options = {
      :to => user.email,
      :subject => "[#{Typus.admin_title}] #{Typus::I18n.t("Reset password")}",
    }

    mail(options) do |format|
      format.text
      format.html
    end
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
brainsome_typus-4.0.0.beta13 app/mailers/admin/mailer.rb
brainsome_typus-4.0.0.beta12 app/mailers/admin/mailer.rb
brainsome_typus-4.0.0.beta11 app/mailers/admin/mailer.rb
brainsome_typus-4.0.0.beta10 app/mailers/admin/mailer.rb
brainsome_typus-4.0.0.beta9 app/mailers/admin/mailer.rb
brainsome_typus-4.0.0.beta8 app/mailers/admin/mailer.rb
brainsome_typus-4.0.0.beta7 app/mailers/admin/mailer.rb
brainsome_typus-4.0.0.beta6 app/mailers/admin/mailer.rb
brainsome_typus-4.0.0.beta5 app/mailers/admin/mailer.rb
brainsome_typus-4.0.0.beta4 app/mailers/admin/mailer.rb
brainsome_typus-4.0.0.beta3 app/mailers/admin/mailer.rb
brainsome_typus-4.0.0.beta2 app/mailers/admin/mailer.rb
brainsome_typus-4.0.0.beta1 app/mailers/admin/mailer.rb