Skip to content

Commit

Permalink
Use params#require instead params[] access
Browse files Browse the repository at this point in the history
  • Loading branch information
osw-gitlab authored and rspeicher committed Jul 27, 2017
1 parent e561b14 commit f837cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/applications_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ def set_application

# 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

0 comments on commit f837cd6

Please sign in to comment.