Rails stores global state (Rails.application, Rails.cache, Rails.logger, config set via mattr_accessor) in class-level instance variables, which are illegal to read or write from non-main Ractors. This shim reroutes those accessors through ActiveSupport::IsolatedExecutionState (which is already Ractor-safe, being thread-local with per-ractor threads) or Ractor.store_if_absent, so a Rails app can run in Ractor mode. This is a stopgap: the goal is for Rails to do this upstream, at which point the shim becomes a no-op and can be removed.
Required Ruby Version
>= 4.0
Authors
dev
Versions
- 0.4.0 August 15, 2026 (196 KB)
- 0.3.1 August 06, 2026 (150 KB)
- 0.3.0 August 05, 2026 (129 KB)
- 0.2.6 August 04, 2026 (124 KB)
- 0.2.5 July 21, 2026 (117 KB)
- 0.2.0 July 14, 2026 (111 KB)