debian-mirror-gitlab/app/services/applications/create_service.rb
2018-11-08 19:23:39 +05:30

12 lines
259 B
Ruby

module Applications
class CreateService
def initialize(current_user, params)
@current_user = current_user
@params = params.except(:ip_address)
end
def execute(request)
Doorkeeper::Application.create(@params)
end
end
end