diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-04-10 04:28:21 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-07 09:54:07 +0300 |
commit | 1ef9e9c2aaaffb202f09bf6a245a01bfb5516b6e (patch) | |
tree | 5df5d0aa0a1789ee035d87f14663d2e5c32c19bc /app/controllers/projects/runner_projects_controller.rb | |
parent | 2135949eb55c214828e34384c234b6256b9981ea (diff) |
Inline runner_path and runners_path helpers
These were just shorthands for project_... and they will be confusing when introducing group runners so we should not have them (#10244)
Diffstat (limited to 'app/controllers/projects/runner_projects_controller.rb')
-rw-r--r-- | app/controllers/projects/runner_projects_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/runner_projects_controller.rb b/app/controllers/projects/runner_projects_controller.rb index 3cb01405b05..0ec2490655f 100644 --- a/app/controllers/projects/runner_projects_controller.rb +++ b/app/controllers/projects/runner_projects_controller.rb @@ -8,7 +8,7 @@ class Projects::RunnerProjectsController < Projects::ApplicationController return head(403) unless can?(current_user, :assign_runner, @runner) - path = runners_path(project) + path = project_runners_path(project) runner_project = @runner.assign_to(project, current_user) if runner_project.persisted? @@ -22,6 +22,6 @@ class Projects::RunnerProjectsController < Projects::ApplicationController runner_project = project.runner_projects.find(params[:id]) runner_project.destroy - redirect_to runners_path(project), status: 302 + redirect_to project_runners_path(project), status: 302 end end |