mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-12 23:27:48 +00:00
12 lines
296 B
Ruby
12 lines
296 B
Ruby
module Spree
|
|
module Admin
|
|
module PaymentsHelper
|
|
def payment_method_name(payment)
|
|
# hack to allow us to retrieve the name of a "deleted" payment method
|
|
id = payment.payment_method_id
|
|
Spree::PaymentMethod.find_with_destroyed(id).name
|
|
end
|
|
end
|
|
end
|
|
end
|