summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-04-07 14:47:29 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2017-04-07 16:17:29 +0200
commit03088552549ed1631bb16c1bf3d0bef3613ec793 (patch)
tree50996bfbef73056b04a74751552f016f9d554342 /app/controllers
parent1ae1d85cdc835c8ed7907e83f3e371018c7c8fe6 (diff)
downloadgitlab-ce-03088552549ed1631bb16c1bf3d0bef3613ec793.tar.gz
Fix ref reference
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/triggers_controller.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/controllers/projects/triggers_controller.rb b/app/controllers/projects/triggers_controller.rb
index c1fc40f75d7..afa56de920b 100644
--- a/app/controllers/projects/triggers_controller.rb
+++ b/app/controllers/projects/triggers_controller.rb
@@ -16,7 +16,6 @@ class Projects::TriggersController < Projects::ApplicationController
if @trigger.valid?
flash[:notice] = 'Trigger was created successfully.'
else
- puts "@trigger.errors: #{@trigger.errors.inspect}"
flash[:alert] = 'You could not create a new trigger.'
end
@@ -70,8 +69,8 @@ class Projects::TriggersController < Projects::ApplicationController
def trigger_params
params.require(:trigger).permit(
- :description, :ref,
- trigger_schedule_attributes: [:cron, :cron_timezone, :_destroy]
+ :description,
+ trigger_schedule_attributes: [:id, :active, :cron, :cron_timezone, :ref]
)
end
end