aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2012-11-29 20:02:28 +0100
committerGibheer <gibheer@gmail.com>2012-11-29 20:02:28 +0100
commitc6623d47df647cfd719d1b1d64d056184d55d080 (patch)
tree021edbbd45a383ca199478e41ea386429ab31cfd /lib
parent849a6f34ca0ddf93cbbc0a2c95c9c93917545730 (diff)
added custom parameters in the router
Diffstat (limited to 'lib')
-rw-r--r--lib/zero/router.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zero/router.rb b/lib/zero/router.rb
index befb171..9ec3b4b 100644
--- a/lib/zero/router.rb
+++ b/lib/zero/router.rb
@@ -52,7 +52,7 @@ module Zero
match = route.match(request.path)
if match
match.names.each_index do |i|
- request.update_param(match.names[i], match.captures[i])
+ request.params[match.names[i]] = match.captures[i]
end
return target.call(request.env)
end