diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2010-08-24 15:05:26 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-08-24 11:24:32 -0300 |
commit | 11f6179f55d38dd54b69aeeb5bee9053194f0e84 (patch) | |
tree | 80aa84f04ff0925d121101df92bd8d41e161b43b /actionpack/lib/action_dispatch/http | |
parent | 542878304dd53bb8bd8962c61dd9404f2ba57ec7 (diff) | |
download | rails-11f6179f55d38dd54b69aeeb5bee9053194f0e84.tar.gz rails-11f6179f55d38dd54b69aeeb5bee9053194f0e84.tar.bz2 rails-11f6179f55d38dd54b69aeeb5bee9053194f0e84.zip |
Reset symbolized path parameters when a test request is recycled [#5437 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r-- | actionpack/lib/action_dispatch/http/parameters.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/parameters.rb b/actionpack/lib/action_dispatch/http/parameters.rb index 5e1a2405f7..ef5d207b26 100644 --- a/actionpack/lib/action_dispatch/http/parameters.rb +++ b/actionpack/lib/action_dispatch/http/parameters.rb @@ -15,14 +15,14 @@ module ActionDispatch alias :params :parameters def path_parameters=(parameters) #:nodoc: - @_symbolized_path_params = nil + @symbolized_path_params = nil @env.delete("action_dispatch.request.parameters") @env["action_dispatch.request.path_parameters"] = parameters end # The same as <tt>path_parameters</tt> with explicitly symbolized keys. def symbolized_path_parameters - @_symbolized_path_params ||= path_parameters.symbolize_keys + @symbolized_path_params ||= path_parameters.symbolize_keys end # Returns a hash with the \parameters used to form the \path of the request. |