gitlab-org--gitlab-foss/app/services/user_project_access_changed_service.rb
2016-11-18 20:25:45 +02:00

9 lines
210 B
Ruby

class UserProjectAccessChangedService
def initialize(user_ids)
@user_ids = Array.wrap(user_ids)
end
def execute
AuthorizedProjectsWorker.bulk_perform_async(@user_ids.map { |id| [id] })
end
end