Sha256: 3309e0544a766f95c2d6aa6eddf8edce0a264c55cabb1da1a278b780561fd57f
Contents?: true
Size: 982 Bytes
Versions: 62
Compression:
Stored size: 982 Bytes
Contents
module Workarea module Storefront class OrderMailer < Storefront::ApplicationMailer include TransactionalMailer def confirmation(order_id) order = Order.find(order_id) @order = Storefront::OrderViewModel.new(order) @content = Content::Email.find_content('order_confirmation') @recommendations = Storefront::EmailRecommendationsViewModel.wrap(order) mail( to: @order.email, subject: t('workarea.storefront.email.order_confirmation.subject', order_id: @order.id) ) end def reminder(order_id) order = Order.find(order_id) @order = Storefront::OrderViewModel.new(order) @content = Content::Email.find_content('order_reminder') @recommendations = Storefront::EmailRecommendationsViewModel.wrap(order) mail( to: order.email, subject: t('workarea.storefront.email.order_reminder.subject') ) end end end end
Version data entries
62 entries across 62 versions & 1 rubygems