Module: AuthAssistant::ViewHelpers::AuthMenuItem
- Included in:
- AuthAssistant::ViewHelpers
- Defined in:
- lib/auth_assistant/view/auth_menu_item.rb
Instance Method Summary collapse
- #edit_registration_menu_item ⇒ Object (also: #edit_user_menu_item)
- #sign_in_menu_item ⇒ Object (also: #login_menu_item)
- #sign_out_menu_item ⇒ Object (also: #logout_menu_item)
- #sign_up_menu_item ⇒ Object (also: #register_menu_item)
Instance Method Details
#edit_registration_menu_item ⇒ Object Also known as:
16 17 18 |
# File 'lib/auth_assistant/view/auth_menu_item.rb', line 16 def "<li>#{edit_registration_link}</li>".html_safe if current_user end |
#sign_in_menu_item ⇒ Object Also known as:
8 9 10 |
# File 'lib/auth_assistant/view/auth_menu_item.rb', line 8 def "<li>#{sign_in_link}</li>".html_safe if !current_user end |
#sign_out_menu_item ⇒ Object Also known as:
4 5 6 |
# File 'lib/auth_assistant/view/auth_menu_item.rb', line 4 def "<li>#{sign_out_link}</li>".html_safe if current_user end |
#sign_up_menu_item ⇒ Object Also known as:
12 13 14 |
# File 'lib/auth_assistant/view/auth_menu_item.rb', line 12 def "<li>#{sign_up_link}</li>".html_safe if !current_user end |