aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-07 16:16:36 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-07 16:16:36 +0000
commitb9b6cb95d3c7a6f623c2b328ae2cf8b3e2a05ef1 (patch)
treee50b6978613d9cacff92840b8f5b17afbfd5b535 /actionpack/lib/action_controller
parent703ac4c5ac68f68b48debd1bfc352cd687b2df30 (diff)
downloadrails-b9b6cb95d3c7a6f623c2b328ae2cf8b3e2a05ef1.tar.gz
rails-b9b6cb95d3c7a6f623c2b328ae2cf8b3e2a05ef1.tar.bz2
rails-b9b6cb95d3c7a6f623c2b328ae2cf8b3e2a05ef1.zip
Fixed routing to allow for testing of *path components #1650 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/test_process.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index 71c012c357..8dd2e443ae 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -75,7 +75,7 @@ module ActionController #:nodoc:
if extra_keys.include?(key.to_sym)
non_path_parameters[key] = value
else
- path_parameters[key] = value.to_s
+ path_parameters[key] = value.is_a?(Fixnum) ? value.to_s : value
end
end
end