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
path: root/lib
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-12 21:37:09 +0300
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-30 17:55:08 +0300
commitf8cb5fd65a8ed00f38368a6a050c940e72cc6f3e (patch)
tree4ec38d79506a154e2ad79728a8df3371e256047d /lib
parent8743f765abc2281c664792f5016747f54d0fb7aa (diff)
Add own! method on PipleineSchedule
Diffstat (limited to 'lib')
-rw-r--r--lib/api/pipeline_schedules.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/pipeline_schedules.rb b/lib/api/pipeline_schedules.rb
index 6e6bbb29e3a..81b88b17041 100644
--- a/lib/api/pipeline_schedules.rb
+++ b/lib/api/pipeline_schedules.rb
@@ -100,7 +100,7 @@ module API
pipeline_schedule = user_project.pipeline_schedules.find(params.delete(:pipeline_schedule_id))
return not_found!('PipelineSchedule') unless pipeline_schedule
- if pipeline_schedule.update(owner: current_user)
+ if pipeline_schedule.own!(current_user)
status :ok
present pipeline_schedule, with: Entities::PipelineSchedule
else