Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove a cache we do not need

  • Loading branch information...
commit fa3457dc3b30e3dde5bc4b041f59c037c76e1f8b 1 parent 4921929
@tenderlove tenderlove authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 actionpack/lib/action_dispatch/http/filter_parameters.rb
View
6 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 Http
# 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 @@ def env_filter
end
def parameter_filter_for(filters)
- @@parameter_filter_for[filters] ||= ParameterFilter.new(filters)
+ ParameterFilter.new(filters)
end
KV_RE = '[^&;=]+'
@@ -75,7 +72,6 @@ def filtered_query_string
parameter_filter.filter([[$1, $2]]).first.join("=")
end
end
-
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.