gitlab-org--gitlab-foss/app/services/keys/destroy_service.rb

15 lines
267 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Keys
class DestroyService < ::Keys::BaseService
def execute(key)
key.destroy if destroy_possible?(key)
end
2018-10-30 06:53:01 -04:00
# overridden in EE::Keys::DestroyService
def destroy_possible?(key)
true
end
end
end