Permalink
Browse files

initialize required instance variables for this mixin

  • Loading branch information...
1 parent 7cc5bf5 commit 210c8417f14e4427e7db822cd4e7386451acd827 @tenderlove tenderlove committed Oct 18, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 actionpack/lib/action_dispatch/http/filter_parameters.rb
@@ -20,10 +20,15 @@ module Http
# 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)

0 comments on commit 210c841

Please sign in to comment.