X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9018d1af07c53b03bf8caf0480b931dc25f57147..53a33110f0bb7440ab7ec5b00b59c9fc768f7de4:/app/controllers/oauth2_applications_controller.rb 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