mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-09 07:56:58 +00:00
Move method to more generic helper to use it in mailers
This commit is contained in:
@@ -9,9 +9,5 @@ module Admin
|
||||
adjustment.originator_type == "Spree::ShippingMethod"
|
||||
end
|
||||
end
|
||||
|
||||
def last_payment_method(order)
|
||||
OrderPaymentFinder.new(order).last_payment&.payment_method
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user