X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8d76be71bbb8a799cbf0627dee170f26ade5a11f..4ec85171fd7b484ea701e5d9d6c009e72dbbd7de:/app/controllers/oauth2_applications_controller.rb?ds=inline diff --git a/app/controllers/oauth2_applications_controller.rb b/app/controllers/oauth2_applications_controller.rb index 63b77be4b..97d84b173 100644 --- a/app/controllers/oauth2_applications_controller.rb +++ b/app/controllers/oauth2_applications_controller.rb @@ -20,8 +20,8 @@ class Oauth2ApplicationsController < Doorkeeper::ApplicationsController end def application_params - params[:doorkeeper_application][:scopes]&.delete("") - params.require(:doorkeeper_application) + params[:oauth2_application][:scopes]&.delete("") + params.require(:oauth2_application) .permit(:name, :redirect_uri, :confidential, :scopes => []) .merge(:owner => current_resource_owner) end