summaryrefslogtreecommitdiff
path: root/app/controllers/projects/hooks_controller.rb
diff options
context:
space:
mode:
authorskv <skv-headless@yandex.ru>2014-04-06 19:42:24 +0400
committerskv <skv-headless@yandex.ru>2014-04-06 19:42:24 +0400
commit4cc2afdf2eb414cb4aeea5ffab1ac86f56e97a55 (patch)
tree139d34c20e6b1689291c8f98136a89226f1a0464 /app/controllers/projects/hooks_controller.rb
parentbc40efa19d499f603c80c77b1d1e291bd4373be6 (diff)
downloadgitlab-ce-4cc2afdf2eb414cb4aeea5ffab1ac86f56e97a55.tar.gz
Fix url generation error on hook invalid create
Diffstat (limited to 'app/controllers/projects/hooks_controller.rb')
-rw-r--r--app/controllers/projects/hooks_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/hooks_controller.rb b/app/controllers/projects/hooks_controller.rb
index a863b318324..c43d26385f7 100644
--- a/app/controllers/projects/hooks_controller.rb
+++ b/app/controllers/projects/hooks_controller.rb
@@ -18,7 +18,7 @@ class Projects::HooksController < Projects::ApplicationController
if @hook.valid?
redirect_to project_hooks_path(@project)
else
- @hooks = @project.hooks
+ @hooks = @project.hooks.select(&:persisted?)
render :index
end
end