summaryrefslogtreecommitdiff
path: root/app/serializers/pipeline_entity.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-12 10:05:57 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-12 10:06:42 +0100
commit6186ac2c3d0db6932993ac681cbed6f453499503 (patch)
tree920460fa029d473888f8081250f00c0e8fb5031a /app/serializers/pipeline_entity.rb
parent7748282996d7754a342b5956b1a277a54a9b26f5 (diff)
downloadgitlab-ce-6186ac2c3d0db6932993ac681cbed6f453499503.tar.gz
Expose created_at and updated_at in pipeline entity
Diffstat (limited to 'app/serializers/pipeline_entity.rb')
-rw-r--r--app/serializers/pipeline_entity.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/serializers/pipeline_entity.rb b/app/serializers/pipeline_entity.rb
index 24fe1602c2d..08346b4ed77 100644
--- a/app/serializers/pipeline_entity.rb
+++ b/app/serializers/pipeline_entity.rb
@@ -64,6 +64,8 @@ class PipelineEntity < Grape::Entity
pipeline.project, pipeline.id)
end
+ expose :created_at, :updated_at
+
def created_exposure?
!incremental? || created?
end