Sha256: bc482850b823b1416d6d745d9953fb87c2c27d31c70b0740823b7f3ecc4f880d

Contents?: true

Size: 582 Bytes

Versions: 31

Compression:

Stored size: 582 Bytes

Contents

class InvitationMailer < ActionMailer::Base
  def invitation(invitation)
    @invitation = invitation
    subject = I18n.t(:subject,
                     :scope   => [:saucy, :mailers, :invitation_mailer, :invititation],
                     :default => "Invitation")
    mail :to       => invitation.email,
         :subject  => subject,
         :reply_to => invitation.sender_email,
         :from     => sender_name_and_support_address
  end

  private

  def sender_name_and_support_address
    %{"#{@invitation.sender_name}" <#{Saucy::Configuration.mailer_sender}>}
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
saucy-0.6.1 app/mailers/invitation_mailer.rb
saucy-0.6.0 app/mailers/invitation_mailer.rb
saucy-0.5.5 app/mailers/invitation_mailer.rb
saucy-0.5.4 app/mailers/invitation_mailer.rb
saucy-0.5.3 app/mailers/invitation_mailer.rb
saucy-0.5.2 app/mailers/invitation_mailer.rb
saucy-0.5.1 app/mailers/invitation_mailer.rb
saucy-0.5.0 app/mailers/invitation_mailer.rb
saucy-0.4.10 app/mailers/invitation_mailer.rb
saucy-0.4.9 app/mailers/invitation_mailer.rb
saucy-0.4.8 app/mailers/invitation_mailer.rb
saucy-0.4.7 app/mailers/invitation_mailer.rb
saucy-0.4.6 app/mailers/invitation_mailer.rb
saucy-0.4.5 app/mailers/invitation_mailer.rb
saucy-0.4.4 app/mailers/invitation_mailer.rb
saucy-0.4.3 app/mailers/invitation_mailer.rb
saucy-0.4.2 app/mailers/invitation_mailer.rb
saucy-0.4.1 app/mailers/invitation_mailer.rb
saucy-0.3.4.1 app/mailers/invitation_mailer.rb
saucy-0.4.0 app/mailers/invitation_mailer.rb