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
layout "project_settings"
def index
redirect_to namespace_project_settings_integrations_path(@project.namespace, @project)
end
def create
@hook = @project.hooks.new(hook_params)
@hook.save
......@@ -18,7 +14,8 @@ class Projects::HooksController < Projects::ApplicationController
redirect_to namespace_project_settings_integrations_path(@project.namespace, @project)
else
@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
......
......@@ -9,10 +9,6 @@ class Projects::ServicesController < Projects::ApplicationController
layout "project_settings"
def index
redirect_to namespace_project_settings_integrations_path(@project.namespace, @project)
end
def edit
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