Class: PassMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/pass_mailer.rb

Instance Method Summary collapse

Instance Method Details

#pass_info_for(person, from, passes) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'app/mailers/pass_mailer.rb', line 4

def pass_info_for(person, from, passes)
  @person = person
  @pass_summary = PassSummary.new(person.organization, passes)

  options = Hash.new.tap do |o|
    o[:to] = person.email
    o[:from] = from
    o[:subject] = "Your Passes"
    o[:reply_to] = from
  end

  mail(options)
end