Skip to content
Snippets Groups Projects
Commit 3762b910 authored by Dylan Griffith's avatar Dylan Griffith
Browse files

Rename set_runner -> runner in runner controllers

parent 4ec95dc4
No related branches found
No related tags found
No related merge requests found
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'
Loading
Loading
@@ -41,7 +41,7 @@ def pause
 
private
 
def set_runner
def runner
@runner ||= @group.runners.find(params[:id])
end
 
Loading
Loading
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'
 
Loading
Loading
@@ -61,7 +61,7 @@ def toggle_group_runners
 
protected
 
def set_runner
def runner
@runner ||= project.runners.find(params[:id])
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