6d81905faf
Signed-off-by: Rémy Coutable <remy@rymai.me>
12 lines
235 B
Ruby
12 lines
235 B
Ruby
module Keys
|
|
class DestroyService < ::Keys::BaseService
|
|
def execute(key)
|
|
key.destroy if destroy_possible?(key)
|
|
end
|
|
|
|
# overriden in EE::Keys::DestroyService
|
|
def destroy_possible?(key)
|
|
true
|
|
end
|
|
end
|
|
end
|