Better Globals With a Tiny ActiveSupport Module Generally, global variables are bad. But sometimes, a global in the right place can make your code a lot simpler. In Rails, you might set data once during a request, but use it in every layer of your app. Which user is making the request? What permissions do they have? Which database connection should be used? This information should be available thr
![Better globals with a tiny ActiveSupport module](https://cdn-ak-scissors.b.st-hatena.com/image/square/faef95303bdef4efff6de8da84fa6c9c3fc35d77/height=288;version=1;width=512/https%3A%2F%2Fwww.justinweiss.com%2Fimages%2Fme-square.jpg)