Skip to content

Commit

Permalink
remove a cache we do not need
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Dec 14, 2012
1 parent 4921929 commit fa3457d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions 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/hash/keys'
require 'active_support/core_ext/object/duplicable' require 'active_support/core_ext/object/duplicable'


Expand All @@ -21,8 +20,6 @@ module Http
# end # end
# => reverses the value to all keys matching /secret/i # => reverses the value to all keys matching /secret/i
module FilterParameters module FilterParameters
@@parameter_filter_for = ThreadSafe::Cache.new

ENV_MATCH = [/RAW_POST_DATA/, "rack.request.form_vars"] # :nodoc: ENV_MATCH = [/RAW_POST_DATA/, "rack.request.form_vars"] # :nodoc:
NULL_PARAM_FILTER = ParameterFilter.new # :nodoc: NULL_PARAM_FILTER = ParameterFilter.new # :nodoc:
NULL_ENV_FILTER = ParameterFilter.new ENV_MATCH # :nodoc: NULL_ENV_FILTER = ParameterFilter.new ENV_MATCH # :nodoc:
Expand Down Expand Up @@ -65,7 +62,7 @@ def env_filter
end end


def parameter_filter_for(filters) def parameter_filter_for(filters)
@@parameter_filter_for[filters] ||= ParameterFilter.new(filters) ParameterFilter.new(filters)
end end


KV_RE = '[^&;=]+' KV_RE = '[^&;=]+'
Expand All @@ -75,7 +72,6 @@ def filtered_query_string
parameter_filter.filter([[$1, $2]]).first.join("=") parameter_filter.filter([[$1, $2]]).first.join("=")
end end
end end

end end
end end
end end

0 comments on commit fa3457d

Please sign in to comment.