Skip to content

Commit

Permalink
Fix modifying params_filters
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Sep 10, 2010
1 parent 6285f3b commit 1c42bde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/hoptoad_notifier/notice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ def rack_session

def also_use_rack_params_filters
if args[:rack_env]
self.params_filters += rack_request.env["action_dispatch.parameter_filter"] || []
params_filters ||= []
params_filters += rack_request.env["action_dispatch.parameter_filter"] || []
end
end

Expand Down

0 comments on commit 1c42bde

Please sign in to comment.