Files
openfoodnetwork/app/helpers/spree/admin/payments_helper.rb
2020-01-22 20:22:28 +00:00

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