diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-13 03:06:05 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-30 23:55:08 +0900 |
commit | 97bf2401991ab2e9cea956dfb7c9630e2a185683 (patch) | |
tree | 98786d50c93107cd67d7e33710c6398b0f1306b4 | |
parent | bd7d7759d6e7f98d2d306495a8de5be44590b490 (diff) | |
download | gitlab-ce-97bf2401991ab2e9cea956dfb7c9630e2a185683.tar.gz |
Remove if from last_pipeline in entity
-rw-r--r-- | lib/api/entities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 1f1942b2ec1..b2bc0a17142 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -690,7 +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, if: -> (pipeline_schedule, opts) { pipeline_schedule.last_pipeline.present? } + expose :last_pipeline, using: Entities::Pipeline expose :owner, using: Entities::UserBasic end |