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

  1. 0.2.4 July 16, 2026 (114 KB)
  2. 0.2.2 July 16, 2026 (112 KB)
  3. 0.2.1 July 14, 2026 (111 KB)
  4. 0.2.0 July 14, 2026 (111 KB)

Pushed by

SHA 256 checksum