Sha256: 8272e7f586f6c2f067ac0c6ec95ee913a12d8804cdb80d6e103861c9be41f4a5

Contents?: true

Size: 461 Bytes

Versions: 20

Compression:

Stored size: 461 Bytes

Contents

class Notifications < ActionMailer::Base
  
  default :from => Alchemy::Config.get(:mailer)[:mail_from]
  
  def registered_user_created(user)
    @user = user
    @url = login_url
    mail(
      :to => user.email,
      :subject => I18n.t("alchemy.mailer.new_user_mail.subject")
    )
  end
  
  def admin_user_created(user)
    @user = user
    @url = admin_url
    mail(
      :to => user.email,
      :subject => _("Your Alchemy Login")
    )
  end
  
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
alchemy_cms-2.0.7 app/mailers/notifications.rb
alchemy_cms-2.0.6.1 app/mailers/notifications.rb
alchemy_cms-2.0.5 app/mailers/notifications.rb
alchemy_cms-2.0.4 app/mailers/notifications.rb
alchemy_cms-2.0.3.1 app/mailers/notifications.rb
alchemy_cms-2.1.beta1 app/mailers/notifications.rb
alchemy_cms-2.0.3 app/mailers/notifications.rb
alchemy_cms-2.0.2 app/mailers/notifications.rb
alchemy_cms-2.0.1 app/mailers/notifications.rb
alchemy_cms-2.0 app/mailers/notifications.rb
alchemy_cms-2.0.rc6 app/mailers/notifications.rb
alchemy_cms-2.0.rc5 app/mailers/notifications.rb
alchemy_cms-2.0.rc4 app/mailers/notifications.rb
alchemy_cms-2.0.rc3 app/mailers/notifications.rb
alchemy_cms-2.0.rc2 app/mailers/notifications.rb
alchemy_cms-2.0.rc1 app/mailers/notifications.rb
alchemy_cms-2.0.pre5 app/mailers/notifications.rb
alchemy_cms-2.0.pre4 app/mailers/notifications.rb
alchemy_cms-2.0.pre3 app/mailers/notifications.rb
alchemy_cms-2.0.pre2 app/mailers/notifications.rb