diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-10-18 16:51:35 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-10-18 16:51:35 -0700 |
commit | 210c8417f14e4427e7db822cd4e7386451acd827 (patch) | |
tree | 2d9153111af9d4cdcbe2dbe3816aaf4a153e9738 | |
parent | 7cc5bf51b4c16e89340b8c45ca0297e387226aaf (diff) | |
download | rails-210c8417f14e4427e7db822cd4e7386451acd827.tar.gz rails-210c8417f14e4427e7db822cd4e7386451acd827.tar.bz2 rails-210c8417f14e4427e7db822cd4e7386451acd827.zip |
initialize required instance variables for this mixin
-rw-r--r-- | actionpack/lib/action_dispatch/http/filter_parameters.rb | 9 |
1 files changed, 7 insertions, 2 deletions
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) |