Sha256: b8e218264b7f0c082a158ea632fc2830240e963df98d51363a4fb7786aebb2ce
Contents?: true
Size: 501 Bytes
Versions: 4
Compression:
Stored size: 501 Bytes
Contents
module Workarea class Storefront::InventoryUpdateMailer < Storefront::ApplicationMailer def notify(product_id, sku, email) product = Catalog::Product.find(product_id) @product = Storefront::ProductViewModel.wrap(product, sku: sku) @variant = product.variants.where(sku: sku).first mail(to: email, from: Workarea.config.email_from, subject: subject) end private def subject I18n.t('workarea.storefront.restock_mailer.subject') end end end
Version data entries
4 entries across 4 versions & 1 rubygems