debian-mirror-gitlab/app/services/applications/create_service.rb

13 lines
259 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
module Applications
class CreateService
def initialize(current_user, params)
@current_user = current_user
2018-11-08 19:23:39 +05:30
@params = params.except(:ip_address)
2018-03-17 18:26:18 +05:30
end
2018-11-08 19:23:39 +05:30
def execute(request)
2018-03-17 18:26:18 +05:30
Doorkeeper::Application.create(@params)
end
end
end