debian-mirror-gitlab/app/services/gpg_keys/create_service.rb
2018-11-18 11:00:15 +05:30

11 lines
235 B
Ruby

# frozen_string_literal: true
module GpgKeys
class CreateService < Keys::BaseService
def execute
key = user.gpg_keys.create(params)
notification_service.new_gpg_key(key) if key.persisted?
key
end
end
end