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_capacity_released(resource, opts = {}) ⇒ Object

We do not send email from this gem, and instead use the effective_orders gem to send the email.



12
13
14
15
16
17
18
19
20
21
# File 'app/mailers/effective/events_mailer.rb', line 12

def event_capacity_released(resource, opts = {})
  raise('expected an event_registration') unless resource.class.try(:effective_events_event_registration?)

  @assigns = assigns_for(resource)

  @event_registration = resource
  @event = @event_registration.event

  mail(to: mailer_admin, **headers_for(resource, opts))
end