Announcing request_store

from blog Steve Klabnik, | ↗ original
Dec 17 2012 Last night I had some insomnia, so I wrote a gem. Here it is: https://github.com/steveklabnik/request_store. TL;DR: If you’re using Thread.current in your Rails app to store global-ish data, don’t do it! If you use Thin or Puma or a threaded web server, it won’t get reset between requests, and you’ll end up with subtle bugs. So do this...