diff options
author | Patrick Toomey <ptoomey3@biasedcoin.com> | 2019-05-31 08:19:20 -0600 |
---|---|---|
committer | Patrick Toomey <ptoomey3@biasedcoin.com> | 2019-05-31 08:19:20 -0600 |
commit | 29164f348e6aacf9e5f8cff6aeaa43fedcf98645 (patch) | |
tree | 44989a20c3b3fdb98aaa0fa93ef41922d28e9a47 /activesupport/lib | |
parent | 91f973a803aa1310ffe07bd519671e897fa7e918 (diff) | |
download | rails-29164f348e6aacf9e5f8cff6aeaa43fedcf98645.tar.gz rails-29164f348e6aacf9e5f8cff6aeaa43fedcf98645.tar.bz2 rails-29164f348e6aacf9e5f8cff6aeaa43fedcf98645.zip |
Use style consistent with surrounding code
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/parameter_filter.rb | 4 |
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? |