X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9018d1af07c53b03bf8caf0480b931dc25f57147..8ba1ea0f5d069fe8f2c96fff0804de4fd794bd1e:/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