diff --git a/app/helpers/spree/admin/payments_helper.rb b/app/helpers/spree/admin/payments_helper.rb new file mode 100644 index 00000000000..529ef90adfd --- /dev/null +++ b/app/helpers/spree/admin/payments_helper.rb @@ -0,0 +1,11 @@ +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