Class: Pressroom::Current
- Inherits:
-
ActiveSupport::CurrentAttributes
- Object
- ActiveSupport::CurrentAttributes
- Pressroom::Current
- Defined in:
- lib/pressroom/current.rb
Overview
The publication the current unit of work belongs to.
CurrentAttributes rather than a thread variable so Rails resets it between requests and jobs on its own, which is the failure mode a hand-rolled thread local always eventually hits.