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:
authorLin Jen-Shin <godfat@godfat.org>2017-05-25 14:31:21 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-05-25 14:31:21 +0300
commitefebdba21db9e11b876ecb54db48358e13b08ad3 (patch)
tree44c63974c56c24af642c5b6b358dbb137b307595 /lib/gitlab/utils.rb
parent9f6dc8b2b5fe3d4790d67f13660eb8bfabd4dbca (diff)
Frontend implementation, tests, and changelog
Diffstat (limited to 'lib/gitlab/utils.rb')
-rw-r--r--lib/gitlab/utils.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gitlab/utils.rb b/lib/gitlab/utils.rb
index 4c395b4266e..fa182c4deda 100644
--- a/lib/gitlab/utils.rb
+++ b/lib/gitlab/utils.rb
@@ -21,5 +21,13 @@ module Gitlab
nil
end
+
+ def boolean_to_yes_no(bool)
+ if bool
+ 'Yes'
+ else
+ 'No'
+ end
+ end
end
end