From 85e55d3e15a804a57a646b3263926d3a4c24a564 Mon Sep 17 00:00:00 2001 From: "Shota Fukumori (sora_h)" Date: Sat, 24 May 2014 16:04:29 +0900 Subject: [PATCH] Limit permitting parameters --- app/controllers/stuffs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/stuffs_controller.rb b/app/controllers/stuffs_controller.rb index 96c7113..c6b3b90 100644 --- a/app/controllers/stuffs_controller.rb +++ b/app/controllers/stuffs_controller.rb @@ -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