summaryrefslogtreecommitdiff
path: root/app/models/todo.rb
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-07-11 11:02:11 +0100
committerSean McGivern <sean@gitlab.com>2016-07-12 19:01:09 +0100
commitd957d5f1aa45d3a8474678e5439ccdc09a545482 (patch)
treea2de9685f2c15594c1bfa9dc6703d0c5b32c6558 /app/models/todo.rb
parenteac0433f864b89a19bd3ca82afaf7957a9a3148f (diff)
downloadgitlab-ce-d957d5f1aa45d3a8474678e5439ccdc09a545482.tar.gz
Add approval required todosapproval-required-todo
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r--app/models/todo.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/app/models/todo.rb b/app/models/todo.rb
index ac3fdbc7f3b..8d7a5965aa1 100644
--- a/app/models/todo.rb
+++ b/app/models/todo.rb
@@ -1,14 +1,16 @@
class Todo < ActiveRecord::Base
- ASSIGNED = 1
- MENTIONED = 2
- BUILD_FAILED = 3
- MARKED = 4
+ ASSIGNED = 1
+ MENTIONED = 2
+ BUILD_FAILED = 3
+ MARKED = 4
+ APPROVAL_REQUIRED = 5 # This is an EE-only feature
ACTION_NAMES = {
ASSIGNED => :assigned,
MENTIONED => :mentioned,
BUILD_FAILED => :build_failed,
- MARKED => :marked
+ MARKED => :marked,
+ APPROVAL_REQUIRED => :approval_required
}
belongs_to :author, class_name: "User"