summaryrefslogtreecommitdiff
path: root/app/serializers/job_entity.rb
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-11-02 11:52:34 +0000
committerKamil TrzciƄski <ayufan@ayufan.eu>2018-11-02 11:52:34 +0000
commitcb0b16ebf6a56cd4cad8bdb8c7e915a3b75d6e10 (patch)
tree0c09cc93f4cd2035a8e29c9e536c93afc1176b59 /app/serializers/job_entity.rb
parent74c79123248f35db64db2a6612a2794810f555db (diff)
downloadgitlab-ce-cb0b16ebf6a56cd4cad8bdb8c7e915a3b75d6e10.tar.gz
Add scheduled flag to job entity
Diffstat (limited to 'app/serializers/job_entity.rb')
-rw-r--r--app/serializers/job_entity.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/job_entity.rb b/app/serializers/job_entity.rb
index a0a66511b7b..aebbc18e32f 100644
--- a/app/serializers/job_entity.rb
+++ b/app/serializers/job_entity.rb
@@ -33,6 +33,7 @@ class JobEntity < Grape::Entity
end
expose :playable?, as: :playable
+ expose :scheduled?, as: :scheduled
expose :scheduled_at, if: -> (*) { scheduled? }
expose :created_at
expose :updated_at