Class: Spree::PromotionCodeBatchMailer

Inherits:
BaseMailer
  • Object
show all
Defined in:
core/app/mailers/spree/promotion_code_batch_mailer.rb

Instance Method Summary collapse

Methods inherited from BaseMailer

#from_address, #mail, #money

Instance Method Details

#promotion_code_batch_errored(promotion_code_batch) ⇒ Object



10
11
12
13
# File 'core/app/mailers/spree/promotion_code_batch_mailer.rb', line 10

def promotion_code_batch_errored(promotion_code_batch)
  @promotion_code_batch = promotion_code_batch
  mail(to: promotion_code_batch.email)
end

#promotion_code_batch_finished(promotion_code_batch) ⇒ Object



5
6
7
8
# File 'core/app/mailers/spree/promotion_code_batch_mailer.rb', line 5

def promotion_code_batch_finished(promotion_code_batch)
  @promotion_code_batch = promotion_code_batch
  mail(to: promotion_code_batch.email)
end