diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-07-04 13:04:21 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 12:38:37 +0300 |
commit | 8f0a2b6d780347a5ce258ac1a6a6902ce9695ca1 (patch) | |
tree | 51e964abf1ff7af7da05f0d1418d8b4aef159d35 /app/controllers/projects/pipeline_schedules_controller.rb | |
parent | 6128f286fa5801490be7cc033e827673f0418ff7 (diff) |
Implement Ci::NestedUniquenessValidator
Diffstat (limited to 'app/controllers/projects/pipeline_schedules_controller.rb')
-rw-r--r-- | app/controllers/projects/pipeline_schedules_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects/pipeline_schedules_controller.rb b/app/controllers/projects/pipeline_schedules_controller.rb index aa71f606657..10d478b1eea 100644 --- a/app/controllers/projects/pipeline_schedules_controller.rb +++ b/app/controllers/projects/pipeline_schedules_controller.rb @@ -33,7 +33,8 @@ class Projects::PipelineSchedulesController < Projects::ApplicationController end def update - if schedule.update(schedule_params) + if Ci::UpdatePipelineScheduleService + .new(@project, current_user, schedule_params).execute(schedule) redirect_to namespace_project_pipeline_schedules_path(@project.namespace.becomes(Namespace), @project) else render :edit |