debian-mirror-gitlab/app/services/onboarding_progress_service.rb
2021-03-08 18:12:59 +05:30

13 lines
255 B
Ruby

# frozen_string_literal: true
class OnboardingProgressService
def initialize(namespace)
@namespace = namespace&.root_ancestor
end
def execute(action:)
return unless @namespace
OnboardingProgress.register(@namespace, action)
end
end