module Authpds::Helpers::CurrentUserHelper
Public Instance Methods
current_user()
click to toggle source
Get the current User if there is a UserSession
# File lib/authpds/helpers/current_user_helper.rb, line 10 def current_user if current_user_session.present? @current_user ||= current_user_session.record end end
current_user_session()
click to toggle source
Get the current UserSession if it exists
# File lib/authpds/helpers/current_user_helper.rb, line 5 def current_user_session @current_user_session ||= UserSession.find end