Module: IdentityClient::ApplicationHelper
- Defined in:
- app/helpers/identity_client/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#authenticate ⇒ Object
3 4 5 |
# File 'app/helpers/identity_client/application_helper.rb', line 3 def authenticate redirect_to '/identity_client/auth/icis' unless current_user end |
#current_user ⇒ Object
7 8 9 |
# File 'app/helpers/identity_client/application_helper.rb', line 7 def current_user @current_user ||= User.find(session[:user_id]) if session[:user_id] end |