diff --git a/apps/dashboard/config/configuration_singleton.rb b/apps/dashboard/config/configuration_singleton.rb index 68ecff7324..cee7314567 100644 --- a/apps/dashboard/config/configuration_singleton.rb +++ b/apps/dashboard/config/configuration_singleton.rb @@ -1,5 +1,6 @@ require 'pathname' require 'dotenv' +require_relative '../lib/current_user' # Dashboard app specific configuration singleton definition # following the first proposal in: diff --git a/apps/dashboard/lib/current_user.rb b/apps/dashboard/lib/current_user.rb index 3455e4040a..47e16a4b82 100644 --- a/apps/dashboard/lib/current_user.rb +++ b/apps/dashboard/lib/current_user.rb @@ -1,5 +1,9 @@ # frozen_string_literal: true +require 'etc' +require 'singleton' +require 'active_support/core_ext/module/delegation' + # The CurrentUser class represents the current user on the system from Etc. # It has a name, a home directory, gid, uid and so on. #