class Workarea::Storefront::GiftCardMailerPreview
Public Instance Methods
created()
click to toggle source
# File lib/workarea/mailer_previews/storefront/gift_card_mailer_preview.rb, line 4 def created card = Payment::GiftCard.create!( amount: '100', order_id: 'WL-123456', to: 'to@example.com', from: 'from@example.com', message: 'Gift card message body', notify: true, purchased: true ) GiftCardMailer.created(card.id) end