diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2013-01-12 01:55:14 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2013-01-12 01:55:14 +0000 |
commit | 0db9b13b700aef4c33c750d343cf98d055dd556b (patch) | |
tree | 0fd6a7ef661170d0cf8dc3692141856fdd1d03b7 /actionpack/lib/action_dispatch/http | |
parent | 2c5e0adefeb1541cfc887a876d9e96329a70537d (diff) | |
download | rails-0db9b13b700aef4c33c750d343cf98d055dd556b.tar.gz rails-0db9b13b700aef4c33c750d343cf98d055dd556b.tar.bz2 rails-0db9b13b700aef4c33c750d343cf98d055dd556b.zip |
Remove unnecessary caching of ParameterFilter
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r-- | actionpack/lib/action_dispatch/http/filter_parameters.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/http/filter_parameters.rb b/actionpack/lib/action_dispatch/http/filter_parameters.rb index 8dd1af7f3d..d5b9e55139 100644 --- a/actionpack/lib/action_dispatch/http/filter_parameters.rb +++ b/actionpack/lib/action_dispatch/http/filter_parameters.rb @@ -26,8 +26,6 @@ module ActionDispatch module FilterParameters extend ActiveSupport::Concern - @@parameter_filter_for = {} - # Return a hash of parameters with all sensitive data replaced. def filtered_parameters @filtered_parameters ||= parameter_filter.filter(parameters) @@ -54,7 +52,7 @@ module ActionDispatch end def parameter_filter_for(filters) - @@parameter_filter_for[filters] ||= ParameterFilter.new(filters) + ParameterFilter.new(filters) end KV_RE = '[^&;=]+' |