rails/strong_parameters — pull request #31 by bloudermilk (2012-08-23 23:34:40+00:00)
Title: Adds Parameter#recursive_permit! with tests

When building apps with admin-only authenticated namespaces we often found strong_parameters redundant. However, since we had already included `ActiveModel::ForbiddenAttributesProtection` in our models we were forced to implement it anyway. This update introduces a `Parameter#recursive_permit!` option that crawls the params hash and `#permit!`s any nested hashes. It is well suited for use in namespaced application controllers like so:

```ruby
class Admin::ApplicationController < ::ApplicationController
before_filter :permit_params

private

def permit_params
params.recursive_permit!
end
end
```