2018-07-16 12:31:01 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-05-16 14:26:22 -04:00
|
|
|
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
|
2018-05-16 14:26:22 -04:00
|
|
|
def destroy_possible?(key)
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|