Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initialize required instance variables for this mixin

  • Loading branch information...
commit 210c8417f14e4427e7db822cd4e7386451acd827 1 parent 7cc5bf5
@tenderlove tenderlove authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 actionpack/lib/action_dispatch/http/filter_parameters.rb
View
9 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)
Please sign in to comment.
Something went wrong with that request. Please try again.