Sha256: 8e8b40910d196d2951b67df45439fee9e8ef88eb8193f88b5ea451e3bb3f2209
Contents?: true
Size: 265 Bytes
Versions: 1
Compression:
Stored size: 265 Bytes
Contents
module IdentityClient class ApplicationController < ActionController::Base def authenticate redirect_to :login unless current_user end def current_user @current_user ||= User.find(session[:user_id]) if session[:user_id] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
identity_client-0.1.0 | app/controllers/identity_client/application_controller.rb |