summaryrefslogtreecommitdiff
path: root/app/serializers/pipeline_entity.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-10 21:57:15 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-10 21:57:47 +0100
commit5067d034571dae51e4143dc365472828f54537bb (patch)
tree6dd8410821009ef2aa351dc3e8c465c4a367c072 /app/serializers/pipeline_entity.rb
parent6b52adc661896434d3fea1fd7f83c62bef2456a6 (diff)
downloadgitlab-ce-5067d034571dae51e4143dc365472828f54537bb.tar.gz
Make updated_at optional in pipelines serializer
Diffstat (limited to 'app/serializers/pipeline_entity.rb')
-rw-r--r--app/serializers/pipeline_entity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/pipeline_entity.rb b/app/serializers/pipeline_entity.rb
index 234ec74c2cd..24fe1602c2d 100644
--- a/app/serializers/pipeline_entity.rb
+++ b/app/serializers/pipeline_entity.rb
@@ -73,7 +73,7 @@ class PipelineEntity < Grape::Entity
end
def incremental?
- options[:incremental]
+ options[:incremental] && last_updated
end
def last_updated