1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Memoizing methods on request means we need to clear them out on recycle!

This commit is contained in:
wycats 2010-06-04 10:27:21 -07:00
parent cb1b2a719a
commit ff4c218095

View file

@ -155,6 +155,8 @@ module ActionController
@formats = nil
@env.delete_if { |k, v| k =~ /^(action_dispatch|rack)\.request/ }
@env.delete_if { |k, v| k =~ /^action_dispatch\.rescue/ }
@method = @request_method = nil
@fullpath = @ip = @remote_ip = nil
@env['action_dispatch.request.query_parameters'] = {}
end
end
@ -167,9 +169,7 @@ module ActionController
@block = nil
@length = 0
@body = []
@charset = nil
@content_type = nil
@charset = @content_type = nil
@request = @template = nil
end
end