Sha256: 0c2558f83aeaad67a9923d84fd93bae61fad4714b4615adb01bac146da9cf7ba
Contents?: true
Size: 347 Bytes
Versions: 1
Compression:
Stored size: 347 Bytes
Contents
module UcbRails::ControllerMethods extend ActiveSupport::Concern included do helper_method :current_ldap_person, :logged_in? end def logged_in? session[:uid].present? end def current_ldap_person if logged_in? UCB::LDAP::Person.find_by_uid(session[:uid]) end end module ClassMethods end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ucb_rails-0.0.1 | app/controllers/ucb_rails/controller_methods.rb |