diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-07-31 20:47:21 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-07-31 20:47:21 +0300 |
commit | de2962ec08a7b7eaca3d123f3bc06652439d0d41 (patch) | |
tree | 2c85fc1a47e7dc870c9a77f35a839e765974b5c3 /app/models | |
parent | 6e47403a07b0f709241dac605d25aa839ac3b3cb (diff) | |
parent | 3d9c28af9331feb279053113677af2633e4b8e91 (diff) |
Merge branch 'sh-fix-special-role-error-500' into 'master'
Fix first-time contributor notes not rendering
Closes #65383
See merge request gitlab-org/gitlab-ce!31340
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/note.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index 3f182c1f099..a12d1eb7243 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -27,6 +27,10 @@ class Note < ApplicationRecord def values constants.map {|const| self.const_get(const)} end + + def value?(val) + values.include?(val) + end end end |