Use params#require instead params[] access
This commit is contained in:
parent
e561b142fa
commit
f837cd6611
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue