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:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-17 16:58:23 +0300
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-30 17:55:09 +0300
commit17b9128b305aefc29fddae3b51d13c61ae7dfef9 (patch)
tree9b71d4f318daf6892b412b156fde1cf57f43dbf7 /lib/api/entities.rb
parentdf6040bbd41a639b3d0aa339b2dc0e84d67b811b (diff)
includes last_pipeline
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 93f28e39f82..b2bc0a17142 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -690,9 +690,7 @@ module API
expose :id
expose :description, :ref, :cron, :cron_timezone, :next_run_at, :active
expose :created_at, :updated_at, :deleted_at
- expose :last_pipeline, using: Entities::Pipeline do |pipeline_schedule|
- pipeline_schedule.pipelines&.last
- end
+ expose :last_pipeline, using: Entities::Pipeline
expose :owner, using: Entities::UserBasic
end