Create a mailer preview for the shipped email

Available on http://localhost:3000/rails/mailers/spree/shipment/shipped
This commit is contained in:
Jean-Baptiste Bellet
2021-11-30 16:55:07 +01:00
parent 64fd8da742
commit 9bc7343420

View File

@@ -0,0 +1,11 @@
# frozen_string_literal: true
require 'open_food_network/scope_variant_to_hub'
module Spree
class ShipmentPreview < ActionMailer::Preview
def shipped
ShipmentMailer.shipped_email(Shipment.last)
end
end
end