Skip to content

Commit

Permalink
Remove unnecessary caching of ParameterFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeltrix committed Jan 12, 2013
1 parent 9bc2b09 commit 4c525b2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions actionpack/lib/action_dispatch/http/filter_parameters.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ module Http
module FilterParameters module FilterParameters
extend ActiveSupport::Concern extend ActiveSupport::Concern


@@parameter_filter_for = {}

# Return a hash of parameters with all sensitive data replaced. # Return a hash of parameters with all sensitive data replaced.
def filtered_parameters def filtered_parameters
@filtered_parameters ||= parameter_filter.filter(parameters) @filtered_parameters ||= parameter_filter.filter(parameters)
Expand All @@ -54,7 +52,7 @@ def env_filter
end end


def parameter_filter_for(filters) def parameter_filter_for(filters)
@@parameter_filter_for[filters] ||= ParameterFilter.new(filters) ParameterFilter.new(filters)
end end


KV_RE = '[^&;=]+' KV_RE = '[^&;=]+'
Expand Down

0 comments on commit 4c525b2

Please sign in to comment.