2018-11-18 11:00:15 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
module Keys
|
|
|
|
class CreateService < ::Keys::BaseService
|
|
|
|
def execute
|
|
|
|
key = user.keys.create(params)
|
|
|
|
notification_service.new_key(key) if key.persisted?
|
|
|
|
key
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-12-04 20:38:33 +05:30
|
|
|
|
|
|
|
Keys::CreateService.prepend_if_ee('EE::Keys::CreateService')
|