summaryrefslogtreecommitdiff
path: root/app/models/concerns/access_requestable.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-07-28 19:28:56 +0200
committerRémy Coutable <remy@rymai.me>2016-09-22 11:12:17 +0200
commit6b02127f03b1f8e1dbbecccfc2ba16e62aadcbed (patch)
tree203e8df9de809ffcc5a8d31c76885ecd0d088ab2 /app/models/concerns/access_requestable.rb
parent98b3d6ce695a9751f72adc35bc09f82eb2f624a4 (diff)
downloadgitlab-ce-6b02127f03b1f8e1dbbecccfc2ba16e62aadcbed.tar.gz
New Members::RequestAccessService
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/models/concerns/access_requestable.rb')
-rw-r--r--app/models/concerns/access_requestable.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/models/concerns/access_requestable.rb b/app/models/concerns/access_requestable.rb
deleted file mode 100644
index eedd32a729f..00000000000
--- a/app/models/concerns/access_requestable.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-# == AccessRequestable concern
-#
-# Contains functionality related to objects that can receive request for access.
-#
-# Used by Project, and Group.
-#
-module AccessRequestable
- extend ActiveSupport::Concern
-
- def request_access(user)
- members.create(
- access_level: Gitlab::Access::DEVELOPER,
- user: user,
- requested_at: Time.now.utc)
- end
-end