Skip to content

Commit

Permalink
Add required payment_helper from spree_backend
Browse files Browse the repository at this point in the history
  • Loading branch information
luisramos0 committed Jan 22, 2020
1 parent 74226fb commit 766303b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/helpers/spree/admin/payments_helper.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 766303b

Please sign in to comment.