diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-12-14 11:16:18 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-12-14 11:16:18 -0800 |
commit | fa3457dc3b30e3dde5bc4b041f59c037c76e1f8b (patch) | |
tree | be65b26272fbd4747b50dbdc3f97ecd03e9d5d89 /actionpack | |
parent | 49219293e589093a3ceff9279fd4803271da082d (diff) | |
download | rails-fa3457dc3b30e3dde5bc4b041f59c037c76e1f8b.tar.gz rails-fa3457dc3b30e3dde5bc4b041f59c037c76e1f8b.tar.bz2 rails-fa3457dc3b30e3dde5bc4b041f59c037c76e1f8b.zip |
remove a cache we do not need
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/http/filter_parameters.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionpack/lib/action_dispatch/http/filter_parameters.rb b/actionpack/lib/action_dispatch/http/filter_parameters.rb index 4fea690862..02ab49b44e 100644 --- a/actionpack/lib/action_dispatch/http/filter_parameters.rb +++ b/actionpack/lib/action_dispatch/http/filter_parameters.rb @@ -1,4 +1,3 @@ -require 'thread_safe' require 'active_support/core_ext/hash/keys' require 'active_support/core_ext/object/duplicable' @@ -21,8 +20,6 @@ module ActionDispatch # end # => reverses the value to all keys matching /secret/i module FilterParameters - @@parameter_filter_for = ThreadSafe::Cache.new - ENV_MATCH = [/RAW_POST_DATA/, "rack.request.form_vars"] # :nodoc: NULL_PARAM_FILTER = ParameterFilter.new # :nodoc: NULL_ENV_FILTER = ParameterFilter.new ENV_MATCH # :nodoc: @@ -65,7 +62,7 @@ module ActionDispatch end def parameter_filter_for(filters) - @@parameter_filter_for[filters] ||= ParameterFilter.new(filters) + ParameterFilter.new(filters) end KV_RE = '[^&;=]+' @@ -75,7 +72,6 @@ module ActionDispatch parameter_filter.filter([[$1, $2]]).first.join("=") end end - end end end |