Class: Workarea::Storefront::InventoryUpdateMailerPreview

Inherits:
ActionMailer::Preview
  • Object
show all
Defined in:
lib/workarea/mailer_previews/inventory_update_mailer_preview.rb

Instance Method Summary collapse

Instance Method Details

#notifyObject



4
5
6
7
8
9
# File 'lib/workarea/mailer_previews/inventory_update_mailer_preview.rb', line 4

def notify
  product = Catalog::Product.first

  InventoryUpdateMailer
    .notify(product.id, product.skus.first, '[email protected]')
end