summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2016-11-22 16:43:03 +0000
committerSean McGivern <sean@mcgivern.me.uk>2016-11-22 16:43:03 +0000
commitdfb21e299ff999f5e65e092fdab8b9e9c0e5ac73 (patch)
tree08b7a116703166284ba62386c674a26d8265221f /app/models/project.rb
parent3632f7e4e5e22ce552d73080be7812167e6426bb (diff)
parenteef360912320ecfcb427684edf35672b643a87c0 (diff)
downloadgitlab-ce-dfb21e299ff999f5e65e092fdab8b9e9c0e5ac73.tar.gz
Merge branch 'rs-project-team-helpers' into 'master'
Add shortcuts for adding users to a project team with a specific role Closes #20944 See merge request !7565
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index f8a54324341..76c1fc4945d 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -163,6 +163,7 @@ class Project < ActiveRecord::Base
delegate :name, to: :owner, allow_nil: true, prefix: true
delegate :members, to: :team, prefix: true
delegate :add_user, to: :team
+ delegate :add_guest, :add_reporter, :add_developer, :add_master, to: :team
# Validations
validates :creator, presence: true, on: :create