Sha256: a09ec9319d095a4d7b0ac74fb72e28990010ca5cbaa0b31910fef7aed8f7bd86

Contents?: true

Size: 663 Bytes

Versions: 8

Compression:

Stored size: 663 Bytes

Contents

module Alchemy
  class Notifications < ActionMailer::Base

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

    def member_created(user)
      @user = user

      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

8 entries across 8 versions & 1 rubygems

Version Path
alchemy-devise-6.2.0 app/mailers/alchemy/notifications.rb
alchemy-devise-6.1.0 app/mailers/alchemy/notifications.rb
alchemy-devise-6.0.0 app/mailers/alchemy/notifications.rb
alchemy-devise-5.1.0 app/mailers/alchemy/notifications.rb
alchemy-devise-5.0.1 app/mailers/alchemy/notifications.rb
alchemy-devise-5.0.0 app/mailers/alchemy/notifications.rb
alchemy-devise-4.6.0 app/mailers/alchemy/notifications.rb
alchemy-devise-4.5.0 app/mailers/alchemy/notifications.rb