Class: IdentityClient::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- IdentityClient::ApplicationController
- Defined in:
- app/controllers/identity_client/application_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#authenticate ⇒ Object
3 4 5 |
# File 'app/controllers/identity_client/application_controller.rb', line 3 def authenticate redirect_to :login unless current_user end |
#current_user ⇒ Object
7 8 9 |
# File 'app/controllers/identity_client/application_controller.rb', line 7 def current_user @current_user ||= User.find(session[:user_id]) if session[:user_id] end |