Sha256: 4e0414a7f696d2902370dee86621387bdcc1c9ddc1b25b78dcb2ec13b52fcc56

Contents?: true

Size: 579 Bytes

Versions: 3

Compression:

Stored size: 579 Bytes

Contents

class IuguMailer < Devise::Mailer

  default from: "Iugu <equipe@iugu.com.br>",
          reply_to: "Iugu <atendimento@iugu.com.br>"

  def template_paths
    "iugu/mailer"
  end

  def invitation(user_invitation)
    @user_invitation = user_invitation
    mail(to: @user_invitation.email, :subject => "Convite para sua conta") do |format|
      format.html { render "iugu/mailer/invitation" }
    end
  end

  def welcome(user)
    @user = user
    mail(to: @user.email, :subject => "Bem vindo!") do |format|
      format.html { render "iugu/mailer/welcome" }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iugusdk-1.0.0.alpha.5 app/mailers/iugu_mailer.rb
iugusdk-1.0.0.alpha.4 app/mailers/iugu_mailer.rb
iugusdk-1.0.0.alpha.3 app/mailers/iugu_mailer.rb