debian-mirror-gitlab/app/services/pages/delete_service.rb
2020-06-23 00:09:42 +05:30

10 lines
215 B
Ruby

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