debian-mirror-gitlab/app/services/pages/delete_service.rb

11 lines
215 B
Ruby
Raw Normal View History

2020-01-01 13:55:28 +05:30
# frozen_string_literal: true
module Pages
class DeleteService < BaseService
def execute
project.remove_pages
2020-06-23 00:09:42 +05:30
project.pages_domains.destroy_all # rubocop: disable Cop/DestroyAll
2020-01-01 13:55:28 +05:30
end
end
end