Module: Spree::Admin::PaymentsHelper

Defined in:
app/helpers/spree/admin/payments_helper.rb

Instance Method Summary collapse

Instance Method Details

#payment_method_name(payment) ⇒ Object



4
5
6
7
8
# File 'app/helpers/spree/admin/payments_helper.rb', line 4

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