Sha256: 8ffda97a2ef8d4160c96a67dcde1401c044ddcace7fa10b7d3218f193ce441ce

Contents?: true

Size: 685 Bytes

Versions: 13

Compression:

Stored size: 685 Bytes

Contents

module Alchemy
  class Notifications < ActionMailer::Base

    default(from: Config.get(:mailer)['mail_from'])

    def member_created(user)
      @user = user
      @url = login_url
      mail(
        to: user.email,
        subject: Alchemy.t("Your user credentials")
      )
    end

    def alchemy_user_created(user)
      @user = user
      @url = admin_url
      mail(
        to: user.email,
        subject: Alchemy.t("Your Alchemy Login")
      )
    end

    def reset_password_instructions(user, token, opts={})
      @user = user
      @token = token
      mail(
        to: user.email,
        subject: Alchemy.t("Reset password instructions")
      )
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
alchemy-devise-4.4.0 app/mailers/alchemy/notifications.rb
alchemy-devise-4.3.1 app/mailers/alchemy/notifications.rb
alchemy-devise-4.3.0 app/mailers/alchemy/notifications.rb
alchemy-devise-4.2.1 app/mailers/alchemy/notifications.rb
alchemy-devise-4.2.0 app/mailers/alchemy/notifications.rb
alchemy-devise-4.1.0 app/mailers/alchemy/notifications.rb
alchemy-devise-4.1.0.beta app/mailers/alchemy/notifications.rb
alchemy-devise-4.0.0 app/mailers/alchemy/notifications.rb
alchemy-devise-3.6.0 app/mailers/alchemy/notifications.rb
alchemy-devise-3.5.0 app/mailers/alchemy/notifications.rb
alchemy-devise-3.5.0.beta app/mailers/alchemy/notifications.rb
alchemy-devise-3.4.0 app/mailers/alchemy/notifications.rb
alchemy-devise-3.3.0 app/mailers/alchemy/notifications.rb