Commit
Fixes rails#7478
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -227,8 +227,11 @@ def body_stream #:nodoc: | |
# TODO This should be broken apart into AD::Request::Session and probably | ||
# be included by the session middleware. | ||
def reset_session | ||
session.destroy if session && session.respond_to?(:destroy) | ||
self.session = {} | ||
if session && session.respond_to?(:destroy) | ||
session.destroy | ||
else | ||
self.session = {} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
steveklabnik
Author
Owner
|
||
end | ||
@env['action_dispatch.request.flash_hash'] = nil | ||
end | ||
|
||
|
Doesn't this need indifferent access? Wasn't that the reason for rails#7478?