diff options
Diffstat (limited to 'app/services/keys/destroy_service.rb')
-rw-r--r-- | app/services/keys/destroy_service.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/services/keys/destroy_service.rb b/app/services/keys/destroy_service.rb new file mode 100644 index 00000000000..785cfa3a1d8 --- /dev/null +++ b/app/services/keys/destroy_service.rb @@ -0,0 +1,12 @@ +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 |