diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-10-18 16:51:59 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-10-18 16:51:59 -0700 |
commit | 57d38175004f9795c35a45e20a898b1f4b41ddfc (patch) | |
tree | e6d31cb106d649899c3f3091d2cc3f2cec05105b | |
parent | 210c8417f14e4427e7db822cd4e7386451acd827 (diff) | |
download | rails-57d38175004f9795c35a45e20a898b1f4b41ddfc.tar.gz rails-57d38175004f9795c35a45e20a898b1f4b41ddfc.tar.bz2 rails-57d38175004f9795c35a45e20a898b1f4b41ddfc.zip |
if no filters are supplied, default to an empty list
-rw-r--r-- | actionpack/lib/action_dispatch/http/filter_parameters.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/filter_parameters.rb b/actionpack/lib/action_dispatch/http/filter_parameters.rb index 4ff0bb31e0..91dfec5c35 100644 --- a/actionpack/lib/action_dispatch/http/filter_parameters.rb +++ b/actionpack/lib/action_dispatch/http/filter_parameters.rb @@ -55,7 +55,7 @@ module ActionDispatch end def parameter_filter_for(filters) - @@parameter_filter_for[filters] ||= ParameterFilter.new(filters) + @@parameter_filter_for[filters] ||= ParameterFilter.new(filters || []) end KV_RE = '[^&;=]+' |