Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
initialize required instance variables for this mixin
  • Loading branch information
tenderlove committed Oct 18, 2012
1 parent 7cc5bf5 commit 210c841
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions actionpack/lib/action_dispatch/http/filter_parameters.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 210c841

Please sign in to comment.