Class: Effective::EventsMailer

Inherits:
Object
  • Object
show all
Includes:
EffectiveEmailTemplatesMailer, EffectiveMailer
Defined in:
app/mailers/effective/events_mailer.rb

Instance Method Summary collapse

Instance Method Details

#event_registrant_purchased(resource, opts = {}) ⇒ Object



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

def event_registrant_purchased(resource, opts = {})
  raise('expected an Effective::EventRegistrant') unless resource.kind_of?(Effective::EventRegistrant)

  @assigns = assigns_for(resource)
  mail(to: resource.member_email, **headers_for(resource, opts))
end