Skip to content
Snippets Groups Projects
Commit 0af99433 authored by Jose Ivan Vargas Lopez's avatar Jose Ivan Vargas Lopez
Browse files

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

parent 373411d1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -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
 
Loading
Loading
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment