Module: Spree::Admin::ReimbursementsHelper

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

Instance Method Summary collapse

Instance Method Details

#reimbursement_status_color(reimbursement) ⇒ Object



4
5
6
7
8
9
10
11
# File 'app/helpers/spree/admin/reimbursements_helper.rb', line 4

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