提交 889a4a3d 编写于 作者: A Aaron Patterson

remove useless ivar clearing

Since we only work with new instances, these ivars will not be set.
上级 314ac0cd
......@@ -101,12 +101,6 @@ def assign_parameters(routes, controller_path, action, parameters = {})
path_parameters[:action] = action
self.path_parameters = path_parameters
# Clear the combined params hash in case it was already referenced.
@env.delete("action_dispatch.request.parameters")
# Clear the filter cache variables so they're not stale
@filtered_parameters = @filtered_env = @filtered_path = nil
end
ENCODER = Class.new do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册