app/controllers/auth_controller.rb
# function to handle common functionality for conventional user login and google login
function to handle common functionality for conventional user login and google login
function to handle common functionality for conventional user login and google login
def after_login(user)
    session[:user] = user
    AuthController.set_current_role(user.role_id, session)
    redirect_to controller: AuthHelper.get_home_controller(session[:user]),
                action: AuthHelper.get_home_action(session[:user])
  end
def after_login ( user ) session [ :user ] = user AuthController . set_current_role ( user . role_id , session ) redirect_to controller : AuthHelper . get_home_controller ( session [ :user ] ) , action : AuthHelper . get_home_action ( session [ :user ] ) end
function to handle common functionality for conventional user login and google login
function to handle common functionality for conventional user login and google login
user