This project is archived and is in readonly mode.
Add ability to discard session
-
Daniel Schierbeck
When you write
words = phrase.to_s.dup.split(" "), it seems thatdupis redundant, and adds an unnecessary extra memory consumption.splitis not destructive, and can safely be called onphrase.to_s. -
Daniel Schierbeck
I'm sorry, I accidentally commented on the wrong ticket. My apologies.
-
DHH
Michael, could you give me a use case for when this would be something you were interested in doing?
-
josh
- State changed from new to wontfix
There will be some major changes coming to sessions in 2.3. You'll be able to discard a session simply by setting the session to an empty hash. "session = {}"
