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:
Diffstat (limited to 'lib/gitlab/usage/docs/helper.rb')
-rw-r--r--lib/gitlab/usage/docs/helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/usage/docs/helper.rb b/lib/gitlab/usage/docs/helper.rb
index 8483334800b..e090eb65b4b 100644
--- a/lib/gitlab/usage/docs/helper.rb
+++ b/lib/gitlab/usage/docs/helper.rb
@@ -31,7 +31,9 @@ module Gitlab
end
def render_description(object)
- object.description
+ return 'Missing description' unless object.attributes[:description].present?
+
+ object.attributes[:description]
end
def render_attribute_row(key, value)