Sha256: c2f1a0801fdb5e51fc753833f7190da04246788488610288deedad7ce71c0af9

Contents?: true

Size: 613 Bytes

Versions: 6

Compression:

Stored size: 613 Bytes

Contents

module Workarea
  module Storefront
    class ReviewMailer < Storefront::ApplicationMailer
      include TransactionalMailer

      def review_request(request_id)
        @request = Review::Request.find(request_id)
        @content = Content::Email.find_content('review_request')
        @product = Storefront::ProductViewModel.wrap(
          Catalog::Product.find(@request.product_id)
        )

        mail(
          to: @request.email,
          subject: t(
            'workarea.storefront.email.review_request.subject',
            product: @product.name
          )
        )
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
workarea-reviews-3.1.2 app/mailers/workarea/storefront/review_mailer.rb
workarea-reviews-3.1.1 app/mailers/workarea/storefront/review_mailer.rb
workarea-reviews-3.1.0 app/mailers/workarea/storefront/review_mailer.rb
workarea-reviews-3.0.10 app/mailers/workarea/storefront/review_mailer.rb
workarea-reviews-3.0.9 app/mailers/workarea/storefront/review_mailer.rb
workarea-reviews-3.0.8 app/mailers/workarea/storefront/review_mailer.rb