Permalink
Browse files

Remove unnecessary caching of ParameterFilter

  • Loading branch information...
1 parent 18b8f90 commit 8b3109a441d4578460de2ebf8997b56e8193bea8 @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 8b3109a

Please sign in to comment.