Skip to content

Commit

Permalink
Limit permitting parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sorah committed May 24, 2014
1 parent cf1dbdc commit 85e55d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/stuffs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ def set_stuff

# Never trust parameters from the scary internet, only allow the white list through.
def stuff_params
params.require(:stuff).permit(:title, :expires_at, :unlisted, :filename, :encrypted_password)
params.require(:stuff).permit(:title, :unlisted, :file)
end
end

0 comments on commit 85e55d3

Please sign in to comment.