Sha256: 493f5f40db51f40d909a74ec79ef5fe2622149fc05ddcf0d2700f3b0e59bd9e3

Contents?: true

Size: 419 Bytes

Versions: 2

Compression:

Stored size: 419 Bytes

Contents

module Workarea
  decorate Storefront::OrderMailer, with: :kount do
    def hold_denial(order_id)
      order = Order.find(order_id)
      @order = Storefront::OrderViewModel.new(order)
      @recommendations = Storefront::EmailRecommendationsViewModel.wrap(order)

      mail(
        to: @order.email,
        subject: t('workarea.storefront.email.hold_denial.subject', order_id: @order.id)
      )
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-kount-3.3.1 app/mailers/workarea/storefront/order_mailer.decorator
workarea-kount-3.3.0 app/mailers/workarea/storefront/order_mailer.decorator