Class: Spree::PromotionCodeBatchMailer

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

Instance Method Summary collapse

Instance Method Details

#promotion_code_batch_errored(promotion_code_batch) ⇒ Object



10
11
12
13
# File '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 '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