Skip to content

Reload routes before generating helper RBIs - #2787

Open
efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/tapioca-rails8-routes-2295
Open

efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/tapioca-rails8-routes-2295

Conversation

@efegokdemir

Copy link
Copy Markdown

Motivation

When Rails has already marked its route reloader as loaded, custom routes can be missing from generated path and URL helper RBIs. Fixes #2295.

Implementation

Reload routes before collecting helper modules and add regression coverage for the already-loaded reloader case.

Tests

  • URL helper spec: 36 tests, 206 assertions (Rails 8.1.4.1)
  • bin/typecheck
  • bin/style lib/tapioca/dsl/compilers/url_helpers.rb spec/tapioca/dsl/compilers/url_helpers_spec.rb
  • git diff --check

The Rails 8.0.2 test attempt could not start because the resolved Minitest 6.1.0 is incompatible with that version's line-filtering runner.

@efegokdemir
efegokdemir requested a review from a team as a code owner November 28, 2026 08:53

This branch has not been deployed

No deployments
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.

User-defined routes missing from generated path/URL helper RBI files after upgrading to Rails 8

1 participant