Skip to content
This repository
Browse code

fixing whitelist config in episode 353

  • Loading branch information...
commit 39f6d04c79d81ccfc9a75500b7fb26d08eecf2dc 1 parent 006316e
Ryan Bates authored May 23, 2012
2  episode-353/todo-after/config/application.rb
@@ -48,7 +48,7 @@ class Application < Rails::Application
48 48
     # This will create an empty whitelist of attributes available for mass-assignment for all models
49 49
     # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
50 50
     # parameters by using an attr_accessible or attr_protected declaration.
51  
-    config.active_record.whitelist_attributes = true
  51
+    config.active_record.whitelist_attributes = false
52 52
 
53 53
     # Enable the asset pipeline
54 54
     config.assets.enabled = true

0 notes on commit 39f6d04

Please sign in to comment.
Something went wrong with that request. Please try again.