Class: Effective::ClassifiedsMailer

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

Instance Method Summary collapse

Instance Method Details

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



6
7
8
9
10
11
12
13
14
# File 'app/mailers/effective/classifieds_mailer.rb', line 6

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

  @classified = resource
  subject = subject_for(__method__, 'Classified Submitted', resource, opts)
  headers = headers_for(resource, opts)

  mail(to: mailer_admin, subject: subject, **headers)
end