Module: Spree::Admin::CustomerReturnsHelper
- Defined in:
- app/helpers/spree/admin/customer_returns_helper.rb
Instance Method Summary collapse
Instance Method Details
#reimbursement_status_color(reimbursement) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/helpers/spree/admin/customer_returns_helper.rb', line 8 def reimbursement_status_color(reimbursement) case reimbursement.reimbursement_status when 'reimbursed' then 'success' when 'pending' then 'notice' when 'errored' then 'error' else raise "unknown reimbursement status: #{reimbursement.reimbursement_status}" end end |
#reimbursement_types ⇒ Object
4 5 6 |
# File 'app/helpers/spree/admin/customer_returns_helper.rb', line 4 def reimbursement_types @reimbursement_types ||= Spree::ReimbursementType.accessible_by(current_ability).active end |