Welcome to mirror list, hosted at ThFree Co, Russian Federation.

delete_service.rb « pages « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d4de6bb750dc5f4c384d2120c5fc13264d258b19 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

module Pages
  class DeleteService < BaseService
    def execute
      project.remove_pages
      project.pages_domains.destroy_all # rubocop: disable DestroyAll
    end
  end
end