Module: LdapRails::HelperExtensions
- Defined in:
- lib/ldap-rails/helper_extensions.rb
Instance Method Summary collapse
Instance Method Details
#ldap_status ⇒ Object
7 8 9 10 11 12 |
# File 'lib/ldap-rails/helper_extensions.rb', line 7 def ldap_status return '' unless ldap_user link = link_to('Log Out', ldap_logout_path, :method => :post) return "Logged in as #{ldap_user.username}. #{link}.".html_safe end |
#ldap_user ⇒ Object
3 4 5 |
# File 'lib/ldap-rails/helper_extensions.rb', line 3 def ldap_user controller.ldap_user end |