From 1fac513e5b9bbd0f311e3fd0c6f31490f8c8e4f4 Mon Sep 17 00:00:00 2001 From: Jeff Ohrstrom Date: Tue, 26 Sep 2023 14:54:33 -0400 Subject: [PATCH] alias in self to correct usage. --- apps/dashboard/lib/current_user.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/dashboard/lib/current_user.rb b/apps/dashboard/lib/current_user.rb index 71ebb4287a..3455e4040a 100644 --- a/apps/dashboard/lib/current_user.rb +++ b/apps/dashboard/lib/current_user.rb @@ -13,11 +13,12 @@ class CurrentUser class << self delegate :name, :uid, :gid, :gecos, :dir, :shell, to: :instance delegate :primary_group, :primary_group_name, :group_names, :groups, to: :instance + + alias_method :home, :dir end attr_reader :pwuid delegate :name, :uid, :gid, :gecos, :dir, :shell, to: :pwuid - alias_method :home, :dir def initialize @pwuid = Etc.getpwuid