rails/rails — pull request #7089 by bogdan (2012-07-18 11:27:55+00:00)
Title: [Very experimental] AM::MassAssignmentSecurity: add ability to mark Hash as safe

This patch adds the ability to mark `Hash` as as mass-assignment safe:

``` ruby
User.attr_protected :admin

# In rake task:
User.new({:admin => true, :email => "a@b.com"}.assignment_safe)

# While in controller
User.new(params[:user]) # still secure
```