# Active Support’s CurrentAttributes: a really useful but hated Rails feature?

- URL: https://evilmartians.com/events/activesupport-currentattributes-a-really-useful-but-hated-rails-feature
- Date: 2023-10-27T00:00:00.000Z
- Conference: Kaigi on Rails 2023
- City: Tokyo, Japan
- Speakers: Sampo Kuokkanen
- Event website: https://kaigionrails.org/2023/
- Video: https://youtu.be/9jYnRm1SjgU
- Slides: https://speakerdeck.com/player/05db7d36e5bb48f29e22c59b6bab28d4

---

Some people dislike ActiveSupport::CurrentAttributes, but it’s undeniably very convenient. It allows you to safely use the much-loved global variables within requests—a truly handy feature. I want to discuss why it might be disliked, touching on precautions and past security flaws, such as an instance where information leakage occurred with a Puma and Rails combination.

While I’m not insisting that everyone should use `ActiveSupport::CurrentAttributes`, I want to convey that it’s a viable option for those times when it’s really necessary!
