jsmestad / jsonapi-consumer

Client framework for consuming JSONAPI services in Ruby
https://github.com/jsmestad/jsonapi-consumer
Apache License 2.0
94 stars 18 forks source link

Use request_store instead of Thread directly to allow around_filter #23

Closed jsmestad closed 6 years ago

jsmestad commented 6 years ago

Background

I was noticing some issues with Thread.local code when it came to setting / clearing headers when running multiple Puma workers. This was tracked down to a few things:

Changes