Sha256: 11ffb8900562ef9c322e8f49c478af586fa9aad83df3d2d9be0fb1a397882fc9
Contents?: true
Size: 420 Bytes
Versions: 48
Compression:
Stored size: 420 Bytes
Contents
# frozen_string_literal: true module Spree class MailerPreviews class CartonPreview < ActionMailer::Preview def shipped carton = Carton.joins(:orders).last raise "Your database needs at one shipped order with a carton to render this preview" unless carton Spree::Config.carton_shipped_email_class.shipped_email(order: carton.orders.first, carton: carton) end end end end
Version data entries
48 entries across 48 versions & 2 rubygems