Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
3762b910
Commit
3762b910
authored
May 04, 2018
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename set_runner -> runner in runner controllers
parent
4ec95dc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/controllers/groups/runners_controller.rb
app/controllers/groups/runners_controller.rb
+2
-2
app/controllers/projects/runners_controller.rb
app/controllers/projects/runners_controller.rb
+2
-2
No files found.
app/controllers/groups/runners_controller.rb
View file @
3762b910
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
...
...
app/controllers/projects/runners_controller.rb
View file @
3762b910
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment