From 210c8417f14e4427e7db822cd4e7386451acd827 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 18 Oct 2012 16:51:35 -0700 Subject: initialize required instance variables for this mixin --- actionpack/lib/action_dispatch/http/filter_parameters.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_dispatch/http/filter_parameters.rb b/actionpack/lib/action_dispatch/http/filter_parameters.rb index 47cf41cfa3..4ff0bb31e0 100644 --- a/actionpack/lib/action_dispatch/http/filter_parameters.rb +++ b/actionpack/lib/action_dispatch/http/filter_parameters.rb @@ -20,10 +20,15 @@ module ActionDispatch # end # => reverses the value to all keys matching /secret/i module FilterParameters - extend ActiveSupport::Concern - @@parameter_filter_for = {} + def initialize(env) + super + @filtered_parameters = nil + @filtered_env = nil + @filtered_path = nil + end + # Return a hash of parameters with all sensitive data replaced. def filtered_parameters @filtered_parameters ||= parameter_filter.filter(parameters) -- cgit v1.2.3