class Workarea::Storefront::InventoryUpdateMailerPreview

Public Instance Methods

notify() click to toggle source
# 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, 'user@workarea.com')
end