diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-21 17:08:24 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-21 17:08:24 -0700 |
commit | 992bf079e88fb7b6f12153be526298a81a04053a (patch) | |
tree | ec6979fd29643ba49f91b485281477ed066d2cb8 /actionpack | |
parent | bce4ff70dd1ab88e5b573ad8c88408f100cf219e (diff) | |
download | rails-992bf079e88fb7b6f12153be526298a81a04053a.tar.gz rails-992bf079e88fb7b6f12153be526298a81a04053a.tar.bz2 rails-992bf079e88fb7b6f12153be526298a81a04053a.zip |
use public API to fetch the parameter filter
now the parameter filter doesn't need to know about the env hash in
these two methds.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/http/filter_parameters.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/filter_parameters.rb b/actionpack/lib/action_dispatch/http/filter_parameters.rb index 3170389b36..e70e90018c 100644 --- a/actionpack/lib/action_dispatch/http/filter_parameters.rb +++ b/actionpack/lib/action_dispatch/http/filter_parameters.rb @@ -50,13 +50,13 @@ module ActionDispatch protected def parameter_filter - parameter_filter_for @env.fetch("action_dispatch.parameter_filter") { + parameter_filter_for get_header("action_dispatch.parameter_filter") { return NULL_PARAM_FILTER } end def env_filter - user_key = @env.fetch("action_dispatch.parameter_filter") { + user_key = get_header("action_dispatch.parameter_filter") { return NULL_ENV_FILTER } parameter_filter_for(Array(user_key) + ENV_MATCH) |