Commit 3762b910 authored by Dylan Griffith's avatar Dylan Griffith

Rename set_runner -> runner in runner controllers

parent 4ec95dc4
class Groups::RunnersController < Groups::ApplicationController
before_action :authorize_admin_pipeline!
before_action :set_runner, only: [:edit, :update, :destroy, :pause, :resume, :show]
before_action :runner, only: [:edit, :update, :destroy, :pause, :resume, :show]
def show
render 'shared/runners/show'
......@@ -41,7 +41,7 @@ class Groups::RunnersController < Groups::ApplicationController
private
def set_runner
def runner
@runner ||= @group.runners.find(params[:id])
end
......
class Projects::RunnersController < Projects::ApplicationController
before_action :authorize_admin_build!
before_action :set_runner, only: [:edit, :update, :destroy, :pause, :resume, :show]
before_action :runner, only: [:edit, :update, :destroy, :pause, :resume, :show]
layout 'project_settings'
......@@ -61,7 +61,7 @@ class Projects::RunnersController < Projects::ApplicationController
protected
def set_runner
def runner
@runner ||= project.runners.find(params[:id])
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