summaryrefslogtreecommitdiff
path: root/app/models/concerns
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-01-18 11:34:55 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-01-18 11:34:55 +0100
commit73fcfb296c90746f868ec11a19477a16039ef9a5 (patch)
treebcd83211fbd4d7a62fb8e1183ef8c66fe4eb2675 /app/models/concerns
parent3bc0525ad90aa84ff864a0bc9c43e18ec5d5cd3d (diff)
downloadgitlab-ce-73fcfb296c90746f868ec11a19477a16039ef9a5.tar.gz
Add a default status const to common status concern
Diffstat (limited to 'app/models/concerns')
-rw-r--r--app/models/concerns/has_status.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/concerns/has_status.rb b/app/models/concerns/has_status.rb
index 90432fc4050..431c0354969 100644
--- a/app/models/concerns/has_status.rb
+++ b/app/models/concerns/has_status.rb
@@ -1,6 +1,7 @@
module HasStatus
extend ActiveSupport::Concern
+ DEFAULT_STATUS = 'created'
AVAILABLE_STATUSES = %w[created pending running success failed canceled skipped]
STARTED_STATUSES = %w[running success failed skipped]
ACTIVE_STATUSES = %w[pending running]