diff options
author | Jon Moss <me@jonathanmoss.me> | 2016-03-17 16:19:12 -0400 |
---|---|---|
committer | Jon Moss <me@jonathanmoss.me> | 2016-03-19 21:52:45 -0400 |
commit | 6c6a22176f01b563a7b731fee9f37c837ba83320 (patch) | |
tree | 988c98e2cce707f0b554e8cbce14dfa871e43dae /.yardopts | |
parent | 47c0a3990a44bbf678e06605eb77f000147dac70 (diff) | |
download | rails-6c6a22176f01b563a7b731fee9f37c837ba83320.tar.gz rails-6c6a22176f01b563a7b731fee9f37c837ba83320.tar.bz2 rails-6c6a22176f01b563a7b731fee9f37c837ba83320.zip |
Fix request.reset_session for API controllers
Due to that `ActionDispatch::Flash` (the flash API's middleware) is not
included for API controllers, the `request.reset_session` method, which
relies on there being a `flash=` method which is in fact defined by the
middleware, was previously breaking. Similarly to how
add46482a540b33184f3011c5c307f4b8e90c9cc created a method to be
overridden by the flash middleware in order to ensure non-breakage, this
is how flashes are now reset.
Fixes #24222
Diffstat (limited to '.yardopts')
0 files changed, 0 insertions, 0 deletions