diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2012-10-31 16:32:24 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2012-10-31 16:33:54 +0100 |
commit | 954c350daf435017e34327c83d877377c3f83778 (patch) | |
tree | d756be6db8075e75e63da13f99776eee5516b129 /actionpack/lib/action_controller | |
parent | 4b20cd9c663a417353e4d0388189af71cc642fca (diff) | |
download | rails-954c350daf435017e34327c83d877377c3f83778.tar.gz rails-954c350daf435017e34327c83d877377c3f83778.tar.bz2 rails-954c350daf435017e34327c83d877377c3f83778.zip |
Allow #permit to take its list of permitted parameters as an array
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/strong_parameters.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb index 7d5781b23a..9f78e679c6 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -196,7 +196,7 @@ module ActionController def permit(*filters) params = self.class.new - filters.each do |filter| + filters.flatten.each do |filter| case filter when Symbol, String then if has_key?(filter) |