Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-12 03:06:21 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-12 03:06:21 +0300
commit75687c79df805b57914d79cf217e3f08dbc77cc2 (patch)
treebff07aefc6467b8a7e00cd7649109fc6e8b7768f /lib/gitlab/utils
parent0c3f12149372a79b825d265a6c28dc547e4a1afc (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/utils')
-rw-r--r--lib/gitlab/utils/deep_size.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/utils/deep_size.rb b/lib/gitlab/utils/deep_size.rb
index 562cf09e249..ed2ceb8af7c 100644
--- a/lib/gitlab/utils/deep_size.rb
+++ b/lib/gitlab/utils/deep_size.rb
@@ -25,6 +25,10 @@ module Gitlab
!too_big? && !too_deep?
end
+ def self.human_default_max_size
+ ActiveSupport::NumberHelper.number_to_human_size(DEFAULT_MAX_SIZE)
+ end
+
private
def evaluate