2017-10-24 02:38:06 -04:00
|
|
|
module Applications
|
|
|
|
class CreateService
|
|
|
|
def initialize(current_user, params)
|
|
|
|
@current_user = current_user
|
|
|
|
@params = params
|
|
|
|
@ip_address = @params.delete(:ip_address)
|
|
|
|
end
|
|
|
|
|
2017-10-31 04:02:57 -04:00
|
|
|
def execute(request = nil)
|
2017-10-24 02:38:06 -04:00
|
|
|
Doorkeeper::Application.create(@params)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|