Module: AuthAssistant::ViewHelpers::AuthMenuItem

Included in:
AuthAssistant::ViewHelpers
Defined in:
lib/auth_assistant/view/auth_menu_item.rb

Instance Method Summary collapse

Instance Method Details

#edit_registration_menu_itemObject Also known as: edit_user_menu_item



16
17
18
# File 'lib/auth_assistant/view/auth_menu_item.rb', line 16

def edit_registration_menu_item
  "<li>#{edit_registration_link}</li>".html_safe if current_user
end

#sign_in_menu_itemObject Also known as: login_menu_item



8
9
10
# File 'lib/auth_assistant/view/auth_menu_item.rb', line 8

def 
  "<li>#{}</li>".html_safe if !current_user
end

#sign_out_menu_itemObject Also known as: logout_menu_item



4
5
6
# File 'lib/auth_assistant/view/auth_menu_item.rb', line 4

def sign_out_menu_item
  "<li>#{sign_out_link}</li>".html_safe if current_user
end

#sign_up_menu_itemObject Also known as: register_menu_item



12
13
14
# File 'lib/auth_assistant/view/auth_menu_item.rb', line 12

def 
  "<li>#{}</li>".html_safe if !current_user
end