Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
6845c2a70fa2
Unverified
Commit
352f242d
authored
Sep 25, 2015
by
Dmitriy Zaporozhets
Browse files
Fix admin runner page -> assign all button
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
4d5f9cd5675f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/ci/project.rb
View file @
6845c2a7
...
...
@@ -100,7 +100,7 @@ def already_added?(project)
def
unassigned
(
runner
)
joins
(
"LEFT JOIN
#{
Ci
::
RunnerProject
.
table_name
}
ON
#{
Ci
::
RunnerProject
.
table_name
}
.project_id =
#{
Ci
::
Project
.
table_name
}
.id "
\
"AND
#{
Ci
::
RunnerProject
.
table_name
}
.runner_id =
#{
runner
.
id
}
"
).
where
(
'
#{Ci::RunnerProject.table_name}.project_id
'
=>
nil
)
where
(
"
#{
Ci
::
RunnerProject
.
table_name
}
.project_id
"
=>
nil
)
end
def
ordered_by_last_commit_date
...
...
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