diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-07-26 18:06:30 -0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-07-27 12:09:46 -0400 |
commit | f837cd6611a39d3dd38655821f32feb2c2abba8d (patch) | |
tree | f1eaff8c17f7ebcc457f1d2a0dc12024816f6b9e | |
parent | e561b142fa7c9dd636fd056fc0a6c84961d0cd46 (diff) | |
download | gitlab-ce-f837cd6611a39d3dd38655821f32feb2c2abba8d.tar.gz |
Use params#require instead params[] access
-rw-r--r-- | app/controllers/admin/applications_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/applications_controller.rb b/app/controllers/admin/applications_controller.rb index 4cb6e63d5e3..16590e66d61 100644 --- a/app/controllers/admin/applications_controller.rb +++ b/app/controllers/admin/applications_controller.rb @@ -50,6 +50,6 @@ class Admin::ApplicationsController < Admin::ApplicationController # Only allow a trusted parameter "white list" through. def application_params - params[:doorkeeper_application].permit(:name, :redirect_uri, :trusted, :scopes) + params.require(:doorkeeper_application).permit(:name, :redirect_uri, :trusted, :scopes) end end |