Module: HomeHelper

Defined in:
lib/generators/pontiac/templates/app/helpers/home_helper.rb

Instance Method Summary collapse

Instance Method Details

#financial_class(financial_status) ⇒ Object



3
4
5
6
7
8
# File 'lib/generators/pontiac/templates/app/helpers/home_helper.rb', line 3

def financial_class(financial_status)
  case financial_status
  when 'pending' then 'label-warning'
  when 'paid' then 'label-success'
  end
end

#fulfillment_class(fulfillment_status) ⇒ Object



10
11
12
13
14
15
# File 'lib/generators/pontiac/templates/app/helpers/home_helper.rb', line 10

def fulfillment_class(fulfillment_status)
  case fulfillment_status
  when 'partial' then 'label-warning'
  when 'fulfilled' then 'label-success'
  end
end