gitlab-org--gitlab-foss/app/models/concerns/access_requestable.rb

14 lines
301 B
Ruby
Raw Normal View History

# == 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::RequestAccessService.new(self, user).execute
end
end