From 37413c0ecd12fc60f1653e33e0b74689c30682a4 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Fri, 5 Jul 2024 10:36:13 +0800 Subject: [PATCH] DEV: Fix unicorn not booting due to 8e10878 (#27727) `String#present?` is a method defined by Rails on the `String` class but this class is used before Rails has been loaded. --- lib/git_utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git_utils.rb b/lib/git_utils.rb index f7080cca650..fb664fe2a43 100644 --- a/lib/git_utils.rb +++ b/lib/git_utils.rb @@ -28,6 +28,6 @@ class GitUtils default_value end - (value.present? ? value : nil) || default_value + (!value.empty? ? value : nil) || default_value end end