Skip to content

Defer Flipper module state initialization in Rails - #1051

Merged
jnunemaker merged 2 commits into
cloud-memory-readsfrom
codex/defer-rails-module-state
Sep 14, 2026
Merged

jnunemaker merged 2 commits into
cloud-memory-readsfrom
codex/defer-rails-module-state

Conversation

@jnunemaker

Copy link
Copy Markdown
Collaborator

Summary

  • avoid eager Flipper module-state initialization while Rails is loading
  • initialize configuration and the groups registry from the Flipper engine before the default instance
  • add an isolated Rails regression proving Flipper does not initialize module state before Rails defaults and preserves the required belongs-to default

This is a corrective PR stacked on #1048 so its diff contains only the lifecycle fix and regression coverage.

Testing

  • bundle exec rspec spec/flipper/engine_spec.rb spec/flipper_spec.rb spec/flipper/cloud_spec.rb
  • 130 examples, 0 failures
  • git diff --check

@jnunemaker
jnunemaker merged commit cc7b07b into cloud-memory-reads Sep 14, 2026
48 checks passed
@jnunemaker
jnunemaker deleted the codex/defer-rails-module-state branch September 14, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant