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:
authorSean McGivern <sean@gitlab.com>2016-07-11 13:02:11 +0300
committerSean McGivern <sean@gitlab.com>2016-07-12 21:01:09 +0300
commitd957d5f1aa45d3a8474678e5439ccdc09a545482 (patch)
treea2de9685f2c15594c1bfa9dc6703d0c5b32c6558 /app/models/todo.rb
parenteac0433f864b89a19bd3ca82afaf7957a9a3148f (diff)
Add approval required todos
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"