You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to reset instances is a recipe for causing state leak.
Regular instance variables in `Current` subclasses aren't cleared,
so unless you remember to undefine them in the `reset` callback
they will leak across requests.
We could of course document that, but it's just too much of a footgun,
and I see no benefit of trying to re-use that object instance.
It's much safer to just always drop it and start fresh.
Closes: rails#55125
Co-Authored-By: Janko Marohnić <[email protected]>
0 commit comments