2016-09-19 09:15:01 -04:00
|
|
|
# == 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-02-16 09:10:22 -05:00
|
|
|
Members::RequestAccessService.new(user).execute(self)
|
2016-09-19 09:15:01 -04:00
|
|
|
end
|
|
|
|
end
|