Permalink
Browse files

if no filters are supplied, default to an empty list

  • Loading branch information...
1 parent 210c841 commit 57d38175004f9795c35a45e20a898b1f4b41ddfc @tenderlove tenderlove committed Oct 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/http/filter_parameters.rb
@@ -55,7 +55,7 @@ def env_filter
end
def parameter_filter_for(filters)
- @@parameter_filter_for[filters] ||= ParameterFilter.new(filters)
+ @@parameter_filter_for[filters] ||= ParameterFilter.new(filters || [])
end
KV_RE = '[^&;=]+'

0 comments on commit 57d3817

Please sign in to comment.