diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-03 11:59:38 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-03 12:23:47 +0300 |
commit | 49cbe576229b7e4003575e04006cc4132c3c0060 (patch) | |
tree | ffd27dde6e307a709e793d2720e92fd85c0bae77 /app/models/ci | |
parent | d39b3d4b8d2d4c5ded46182a5353c68a8f5bb5cd (diff) |
Remove Runner#belonging_to_any_project since this is no longer needed
Diffstat (limited to 'app/models/ci')
-rw-r--r-- | app/models/ci/runner.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb index 0b47b71a267..2dfd038d5a8 100644 --- a/app/models/ci/runner.rb +++ b/app/models/ci/runner.rb @@ -32,8 +32,6 @@ module Ci joins(:runner_projects).where(ci_runner_projects: { project_id: project_id }) } - scope :belonging_to_any_project, -> { joins(:runner_projects) } - scope :belonging_to_parent_group_of_project, -> (project_id) { project_groups = ::Group.joins(:projects).where(projects: { id: project_id }) hierarchy_groups = Gitlab::GroupHierarchy.new(project_groups).base_and_ancestors |