aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorPatrick Toomey <ptoomey3@biasedcoin.com>2019-05-31 08:19:20 -0600
committerPatrick Toomey <ptoomey3@biasedcoin.com>2019-05-31 08:19:20 -0600
commit29164f348e6aacf9e5f8cff6aeaa43fedcf98645 (patch)
tree44989a20c3b3fdb98aaa0fa93ef41922d28e9a47 /activesupport
parent91f973a803aa1310ffe07bd519671e897fa7e918 (diff)
downloadrails-29164f348e6aacf9e5f8cff6aeaa43fedcf98645.tar.gz
rails-29164f348e6aacf9e5f8cff6aeaa43fedcf98645.tar.bz2
rails-29164f348e6aacf9e5f8cff6aeaa43fedcf98645.zip
Use style consistent with surrounding code
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?