diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-11-02 23:19:44 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-11-02 23:19:44 +0530 |
commit | 934f98e4cf7c43f8c632496b02ac99492d6b3de1 (patch) | |
tree | e26c254fc759a0605a728e18127fe6bab44c54bd /actionpack/lib | |
parent | aba1d77f38da4a78d0049aff70b46ff0b7db25bf (diff) | |
download | rails-934f98e4cf7c43f8c632496b02ac99492d6b3de1.tar.gz rails-934f98e4cf7c43f8c632496b02ac99492d6b3de1.tar.bz2 rails-934f98e4cf7c43f8c632496b02ac99492d6b3de1.zip |
Dont dup params twice when filter_parameters is present
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 087fdc35cd..61f9f354c3 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -1244,8 +1244,8 @@ module ActionController #:nodoc: 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 |