mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-19 00:27:25 +00:00
15 lines
316 B
Ruby
15 lines
316 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|
|
end
|
|
end
|