diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-09-07 15:49:29 +0200 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-04-23 09:21:42 +0200 |
commit | 7fbdd17cbcd19086694f575884191a6d137838dc (patch) | |
tree | 7078210d24ab355917cb13aece27470ae4ef1196 /app/models/group.rb | |
parent | 9507f39459316719088722510a6ae11b79a4b442 (diff) | |
download | gitlab-ce-7fbdd17cbcd19086694f575884191a6d137838dc.tar.gz |
authorize group runners on user
Diffstat (limited to 'app/models/group.rb')
-rw-r--r-- | app/models/group.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index ec27f757f46..c34c913a16b 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -29,6 +29,8 @@ class Group < Namespace has_many :labels, class_name: 'GroupLabel' has_many :variables, class_name: 'Ci::GroupVariable' has_many :custom_attributes, class_name: 'GroupCustomAttribute' + has_many :runner_groups, class_name: 'Ci::RunnerGroup' + has_many :runners, through: :runner_groups, source: :runner, class_name: 'Ci::Runner' has_many :uploads, as: :model, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent |