Module: Admin::PaymentsHelper

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

Instance Method Summary collapse

Instance Method Details

#payment_method_name(payment) ⇒ Object



2
3
4
5
6
# File 'app/helpers/admin/payments_helper.rb', line 2

def payment_method_name(payment)
  # hack to allow us to retrieve the name of a "deleted" payment method
  id = payment.payment_method_id
  PaymentMethod.find_with_destroyed(id).name
end