Module: VelirIdentityEngine::Authentication

Extended by:
ActiveSupport::Concern
Defined in:
lib/velir_identity_engine/authentication.rb

Instance Method Summary collapse

Instance Method Details

#current_userObject



15
16
17
# File 'lib/velir_identity_engine/authentication.rb', line 15

def current_user
  @current_user ||= ::User.find(session[:user_id]) if session[:user_id]
end