]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/oauth2_applications_controller.rb
Make a generic preferred color scheme method
[rails.git] / app / controllers / oauth2_applications_controller.rb
index 63b77be4bce8f53b8495df2468dff236941db940..97d84b1737eb5d7b86c434f65c97f7328eacd251 100644 (file)
@@ -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