mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
Merge pull request #10707 from mkllnk/mailer-previews
Fix ShipmentMailer preview autoload path
This commit is contained in:
@@ -2,13 +2,11 @@
|
||||
|
||||
require 'open_food_network/scope_variant_to_hub'
|
||||
|
||||
module Spree
|
||||
class ShipmentPreview < ActionMailer::Preview
|
||||
def shipped
|
||||
shipment =
|
||||
Shipment.where.not(tracking: [nil, ""]).last ||
|
||||
Shipment.last
|
||||
ShipmentMailer.shipped_email(shipment)
|
||||
end
|
||||
class ShipmentPreview < ActionMailer::Preview
|
||||
def shipped
|
||||
shipment =
|
||||
Spree::Shipment.where.not(tracking: [nil, ""]).last ||
|
||||
Spree::Shipment.last
|
||||
Spree::ShipmentMailer.shipped_email(shipment, delivery: true)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user