Module: AmaLayout::NavigationHelper

Defined in:
lib/ama_layout/navigation_helper.rb

Instance Method Summary collapse

Instance Method Details



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/ama_layout/navigation_helper.rb', line 3

def navigation
  return AmaLayout::Navigation.non_member unless member?
  case
  when _has_outstanding_balance?
    AmaLayout::Navigation.member_with_outstanding_balance
  when _in_renewal_late?
    AmaLayout::Navigation.member_in_renewal_late
  when _in_renewal?
    AmaLayout::Navigation.member_in_renewal
  else
    AmaLayout::Navigation.member
  end
end