Move method to more generic helper to use it in mailers

This commit is contained in:
Luis Ramos
2020-04-18 13:09:08 +01:00
committed by Maikel Linke
parent 42be6c905f
commit 568e570b4b
4 changed files with 9 additions and 4 deletions

View File

@@ -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