Sha256: 462672018ba20b2c8fc27c155bd5e936d5e2e73bcc6ad5f86dc096ea9633e3f6

Contents?: true

Size: 813 Bytes

Versions: 1

Compression:

Stored size: 813 Bytes

Contents

class UserMailer
  inherit Rad::Mailer::MailerController

  def email_verification token
    @to = token.email
    @from = rad.users.email
    @subject = t :email_verification_title, host: rad.users.host
    # sent_on Time.now

    @body = t(
      :email_verification_text,
      host: rad.users.host,
      url: finish_email_registration_form_identities_path(host: rad.users.host, token: token.token)
    )
  end

  def forgot_password token
    @to = token.user.email
    @from = rad.users.email
    @subject = t :forgot_password_title, name: token.user.name, host: rad.users.host
    # sent_on Time.now

    @body = t(
      :forgot_password_text,
      name: token.user.name,
      host: rad.users.host,
      url: reset_password_form_identities_path(host: rad.users.host, token: token.token)
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rad_users-0.0.2 app/controllers/user_mailer.rb