Class: ReportsMailer

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

Instance Method Summary collapse

Instance Method Details

#daily(tix, donations, memberships, passes) ⇒ Object



6
7
8
9
10
11
12
# File 'app/mailers/reports_mailer.rb', line 6

def daily(tix, donations, memberships, passes)
  @tix          = tix
  @donations    = donations
  @memberships  = memberships
  @passes       = passes
  mail to: @tix.organization.owner.email, bcc: "[email protected]", subject: "Daily Report for #{@tix.start_date.strftime("%b %d, %Y")}"
end