Class: Workarea::Storefront::GiftCardMailer

Inherits:
Storefront::ApplicationMailer
  • Object
show all
Defined in:
app/mailers/workarea/storefront/gift_card_mailer.rb

Instance Method Summary collapse

Instance Method Details

#created(card_id) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'app/mailers/workarea/storefront/gift_card_mailer.rb', line 4

def created(card_id)
  @card = Payment::GiftCard.find(card_id)
  @from = from(@card.from, @card.order_id)

  mail(
    to: @card.to,
    from: Workarea.config.email_from,
    subject: t('workarea.storefront.email.gift_card_created.subject')
  )
end