debian-mirror-gitlab/app/services/pages/delete_service.rb
2020-01-01 13:55:28 +05:30

10 lines
211 B
Ruby

# 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