diff options
author | Vicente Mundim <vicente.mundim@intelitiva.com> | 2009-06-27 12:40:55 +1200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-06-27 12:43:57 +1200 |
commit | 68b02cb00aae4f4ee1b2b9b1eadb6951b747c181 (patch) | |
tree | 83b305c97fd05da036cbefa31abb41850944dba9 /actionpack/lib/action_controller | |
parent | 188a892c5a097ee6d62249d048a6be7d2dfe9649 (diff) | |
download | rails-68b02cb00aae4f4ee1b2b9b1eadb6951b747c181.tar.gz rails-68b02cb00aae4f4ee1b2b9b1eadb6951b747c181.tar.bz2 rails-68b02cb00aae4f4ee1b2b9b1eadb6951b747c181.zip |
Make filter_parameters work correctly with array parameters.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/base/filter_parameter_logging.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/base/filter_parameter_logging.rb b/actionpack/lib/action_controller/base/filter_parameter_logging.rb index 26cd03f277..065e62a37f 100644 --- a/actionpack/lib/action_controller/base/filter_parameter_logging.rb +++ b/actionpack/lib/action_controller/base/filter_parameter_logging.rb @@ -43,6 +43,10 @@ module ActionController filtered_parameters[key] = '[FILTERED]' elsif value.is_a?(Hash) filtered_parameters[key] = filter_parameters(value) + elsif value.is_a?(Array) + filtered_parameters[key] = value.collect do |item| + filter_parameters(item) + end elsif block_given? key = key.dup value = value.dup if value |