diff options
author | Gibheer <gibheer@gmail.com> | 2012-11-29 20:02:28 +0100 |
---|---|---|
committer | Gibheer <gibheer@gmail.com> | 2012-11-29 20:02:28 +0100 |
commit | c6623d47df647cfd719d1b1d64d056184d55d080 (patch) | |
tree | 021edbbd45a383ca199478e41ea386429ab31cfd /lib | |
parent | 849a6f34ca0ddf93cbbc0a2c95c9c93917545730 (diff) |
added custom parameters in the router
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zero/router.rb | 2 |
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 |