aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/abstract_unit.rb
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2010-08-22 18:48:26 +0100
committerJosé Valim <jose.valim@gmail.com>2010-08-22 16:17:26 -0300
commitae2c60734a0f71593709608710a0c7507bb8699e (patch)
tree142ba7641daf70cd79d2f046c934f3320383bb8f /actionpack/test/abstract_unit.rb
parentd79a010976785ec42ed2b567c0f8a2e0fa7d15bf (diff)
downloadrails-ae2c60734a0f71593709608710a0c7507bb8699e.tar.gz
rails-ae2c60734a0f71593709608710a0c7507bb8699e.tar.bz2
rails-ae2c60734a0f71593709608710a0c7507bb8699e.zip
Cache the symbolized path parameters using a instance variable in the request object rather than the environment hash. This it to prevent stale parameters in later routing constraints/redirects as only the normal path parameters are set by Rack::Mount.
Also if a constraint proc arity is more than one, pass the symbolized path parameters as the first argument to match redirect proc args and provide easier access. [#5157 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/test/abstract_unit.rb')
0 files changed, 0 insertions, 0 deletions