Permalink
Browse files

Dont dup params twice when filter_parameters is present

  • Loading branch information...
1 parent aba1d77 commit 934f98e4cf7c43f8c632496b02ac99492d6b3de1 @lifo lifo committed Nov 2, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/base.rb
@@ -1244,8 +1244,8 @@ def log_processing_for_session_id
end
def log_processing_for_parameters
- parameters = respond_to?(:filter_parameters) ? filter_parameters(params) : params
- parameters = parameters.except(:controller, :action, :format)
+ parameters = respond_to?(:filter_parameters) ? filter_parameters(params) : params.dup
+ parameters = parameters.except!(:controller, :action, :format)
logger.info " Parameters: #{parameters.inspect}"
end

0 comments on commit 934f98e

Please sign in to comment.