Permalink
Browse files

this?

  • Loading branch information...
1 parent 9caa751 commit e1840c6b717d6fe79c9fa328fbf687b1793aa878 @bmizerany committed Jan 25, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/sinatra/base.rb
View
3 lib/sinatra/base.rb
@@ -329,7 +329,7 @@ def pass
private
def dispatch!
- @params = @request.params
+ @params = original_params = nested_params(@request.params)
self.class.filters.each do |block|
res = catch(:halt) { instance_eval(&block) ; :continue }
@@ -338,7 +338,6 @@ def dispatch!
if routes = self.class.routes[@request.request_method]
path = @request.path_info
- original_params = nested_params(@request.params)
routes.each do |pattern, keys, conditions, method_name|
if match = pattern.match(path)

0 comments on commit e1840c6

Please sign in to comment.