Commit 0af99433 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Removed the index action from both the projects hook and services controllers

parent 373411d1
...@@ -6,10 +6,6 @@ class Projects::HooksController < Projects::ApplicationController ...@@ -6,10 +6,6 @@ class Projects::HooksController < Projects::ApplicationController
layout "project_settings" layout "project_settings"
def index
redirect_to namespace_project_settings_integrations_path(@project.namespace, @project)
end
def create def create
@hook = @project.hooks.new(hook_params) @hook = @project.hooks.new(hook_params)
@hook.save @hook.save
...@@ -18,7 +14,8 @@ class Projects::HooksController < Projects::ApplicationController ...@@ -18,7 +14,8 @@ class Projects::HooksController < Projects::ApplicationController
redirect_to namespace_project_settings_integrations_path(@project.namespace, @project) redirect_to namespace_project_settings_integrations_path(@project.namespace, @project)
else else
@hooks = @project.hooks.select(&:persisted?) @hooks = @project.hooks.select(&:persisted?)
render :index flash[:alert] = @hook.errors.full_messages.join.html_safe
redirect_to namespace_project_settings_integrations_path(@project.namespace, @project)
end end
end end
......
...@@ -9,10 +9,6 @@ class Projects::ServicesController < Projects::ApplicationController ...@@ -9,10 +9,6 @@ class Projects::ServicesController < Projects::ApplicationController
layout "project_settings" layout "project_settings"
def index
redirect_to namespace_project_settings_integrations_path(@project.namespace, @project)
end
def edit def edit
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment