aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/parameter_filter.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/parameter_filter.rb b/activesupport/lib/active_support/parameter_filter.rb
index 7850fb9467..7114cc8efb 100644
--- a/activesupport/lib/active_support/parameter_filter.rb
+++ b/activesupport/lib/active_support/parameter_filter.rb
@@ -113,9 +113,7 @@ module ActiveSupport
# If we don't pop the current parent it will be duplicated as we
# process each array value.
parents.pop if deep_regexps
- value = value.map do |v|
- value_for_key(key, v, parents, original_params)
- end
+ value = value.map { |v| value_for_key(key, v, parents, original_params) }
# Restore the parent stack after processing the array.
parents.push(key) if deep_regexps
elsif blocks.any?