diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-05-25 14:31:21 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-05-25 14:31:21 +0300 |
commit | efebdba21db9e11b876ecb54db48358e13b08ad3 (patch) | |
tree | 44c63974c56c24af642c5b6b358dbb137b307595 /lib/gitlab/utils.rb | |
parent | 9f6dc8b2b5fe3d4790d67f13660eb8bfabd4dbca (diff) |
Frontend implementation, tests, and changelog
Diffstat (limited to 'lib/gitlab/utils.rb')
-rw-r--r-- | lib/gitlab/utils.rb | 8 |
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 |