Skip to content

Commit

Permalink
Correct the #also_use_rack_params_filters method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Morrison committed Sep 14, 2010
1 parent 5ad32cc commit cc32187
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/hoptoad_notifier/notice.rb
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 cc32187

Please sign in to comment.