mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
a05f410029
For ActionController::Base we write the cookies in a middleware if it was not yet committed no matter if the response was committed or not. [1] For ActionController::Live we write the cookies before the response is committed. [2] We already mimic ActionController::Live in ActionController::TestCase but we don't mimic the ActionController::Base behavior because we were checking if the response was committed before writing the cookies. Now we are matching the behavior of the middleware and writing the cookies if it was not written before. [1]: |
||
---|---|---|
.. | ||
caching | ||
metal | ||
railties | ||
api.rb | ||
base.rb | ||
caching.rb | ||
form_builder.rb | ||
log_subscriber.rb | ||
metal.rb | ||
railtie.rb | ||
renderer.rb | ||
template_assertions.rb | ||
test_case.rb |