Commit dbd534a8 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Admin::RunnerProjectsController#index is not used

parent 5174d6c1
class Admin::RunnerProjectsController < Admin::ApplicationController class Admin::RunnerProjectsController < Admin::ApplicationController
before_action :project, only: [:create] before_action :project, only: [:create]
def index
@runner_projects = project.runner_projects.all
@runner_project = project.runner_projects.new
end
def create def create
@runner = Ci::Runner.find(params[:runner_project][:runner_id]) @runner = Ci::Runner.find(params[:runner_project][:runner_id])
......
...@@ -283,7 +283,7 @@ Rails.application.routes.draw do ...@@ -283,7 +283,7 @@ Rails.application.routes.draw do
post :repository_check post :repository_check
end end
resources :runner_projects resources :runner_projects, only: [:create, :destroy]
end end
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