Use params#require instead params[] access

This commit is contained in:
Oswaldo Ferreira 2017-07-26 18:06:30 -03:00 committed by Robert Speicher
parent e561b142fa
commit f837cd6611

View file

@ -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