Module: UcbRails::ControllerMethods
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/controllers/ucb_rails/controller_methods.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#current_ldap_person ⇒ Object
13 14 15 16 17 |
# File 'app/controllers/ucb_rails/controller_methods.rb', line 13 def current_ldap_person if logged_in? UCB::LDAP::Person.find_by_uid(session[:uid]) end end |
#logged_in? ⇒ Boolean
9 10 11 |
# File 'app/controllers/ucb_rails/controller_methods.rb', line 9 def logged_in? session[:uid].present? end |