Permalink
Browse files

rm reset_parameters because we automatically do it from 9ca4839

  • Loading branch information...
1 parent 4797c4c commit 406b1b64649f48bdd724826a05c06fb78f5378ea @tenderlove tenderlove committed May 27, 2014
View
4 actionpack/lib/action_dispatch/http/parameters.rb
@@ -43,10 +43,6 @@ def path_parameters
@env[Routing::RouteSet::PARAMETERS_KEY] ||= {}
end
- def reset_parameters #:nodoc:
- @env.delete("action_dispatch.request.parameters")
- end
-
private
# Convert nested Hash to HashWithIndifferentAccess
View
2 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -51,8 +51,6 @@ def serve(req)
else
@app.call req.env
end
- ensure
- req.reset_parameters
end
private
View
3 actionpack/test/dispatch/routing_test.rb
@@ -3389,9 +3389,6 @@ def ip
def x_header
@env["HTTP_X_HEADER"] || ""
end
-
- def reset_parameters
- end
end
class XHeader

0 comments on commit 406b1b6

Please sign in to comment.