2018-11-20 20:47:30 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
# == 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)
|
2018-03-27 19:54:05 +05:30
|
|
|
Members::RequestAccessService.new(user).execute(self)
|
2016-06-16 23:09:34 +05:30
|
|
|
end
|
|
|
|
end
|