diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-02 18:43:20 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-02 18:43:20 +0300 |
commit | 0970e7b9608d6ada1c0fe45242ea092ea91068aa (patch) | |
tree | 79b16801413032e669f8369ee111561f152ff923 /app/models/ci/runner.rb | |
parent | 2261188f48dff25c5bfbbca739c5f570849155f4 (diff) |
Rename RunnerGroup -> RunnerNamespace
Diffstat (limited to 'app/models/ci/runner.rb')
-rw-r--r-- | app/models/ci/runner.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb index 4d4aff4c830..0b47b71a267 100644 --- a/app/models/ci/runner.rb +++ b/app/models/ci/runner.rb @@ -14,8 +14,8 @@ module Ci has_many :builds has_many :runner_projects, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent has_many :projects, through: :runner_projects - has_many :runner_groups - has_many :groups, through: :runner_groups + has_many :runner_namespaces + has_many :groups, through: :runner_namespaces has_one :last_build, ->() { order('id DESC') }, class_name: 'Ci::Build' @@ -144,7 +144,7 @@ module Ci end def assigned_to_group? - runner_groups.any? + runner_namespaces.any? end def assigned_to_project? |