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

Revert "*Store implements delete_session as a public method"

This reverts commit d41939a678.

Reason: activerecord-session_store implements `delete_session` as a private method
https://github.com/rails/activerecord-session_store/blob/f188efb/lib/action_dispatch/session/active_record_store.rb#L94

Thank you @al for pointing this out!
https://github.com/rails/rails/commit/d41939a6#commitcomment-43152220

Co-authored-by: Alan Larkin <alan.larkin@gmail.com>
This commit is contained in:
Akira Matsuda 2020-10-12 09:08:46 +09:00
parent 83912c88bf
commit 5699122abf

View file

@ -79,7 +79,7 @@ module ActionDispatch
def destroy
clear
options = self.options || {}
@by.delete_session(@req, options.id(@req), options)
@by.send(:delete_session, @req, options.id(@req), options)
# Load the new sid to be written with the response.
@loaded = false