Permalink
Browse files

Remove unnecessary caching of ParameterFilter

  • Loading branch information...
1 parent 9bc2b09 commit 4c525b2fc99fe8496f5951607279e040feba83a6 @pixeltrix pixeltrix committed Jan 12, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 actionpack/lib/action_dispatch/http/filter_parameters.rb
@@ -26,8 +26,6 @@ module Http
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 @@ def env_filter
end
def parameter_filter_for(filters)
- @@parameter_filter_for[filters] ||= ParameterFilter.new(filters)
+ ParameterFilter.new(filters)
end
KV_RE = '[^&;=]+'

0 comments on commit 4c525b2

Please sign in to comment.