fix: update Zeitwerk autoload for inflections.rb#460
Conversation
`inflections.rb` defines a plain constant (`WORKOS_INFLECTIONS`), not a class or module matching the file name. Zeitwerk expects it to define `Inflections` and raises a `NameError` when it doesn't. Telling the loader to ignore this file prevents the autoload failure.
Greptile SummaryThis PR adds a single Confidence Score: 5/5Safe to merge — one-line targeted fix with no side effects. The change is minimal and correct: No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant WOS as workos.rb
participant INF as inflections.rb
participant ZW as Zeitwerk::Loader
WOS->>INF: require_relative (defines WORKOS_INFLECTIONS)
WOS->>ZW: loader.inflector.inflect(WORKOS_INFLECTIONS)
WOS->>ZW: loader.collapse(...) × 13
WOS->>ZW: loader.ignore(errors.rb)
WOS->>ZW: loader.ignore(inflections.rb) ← new
WOS->>ZW: loader.setup
Note over ZW: Zeitwerk scans lib/workos/**<br/>inflections.rb skipped (no NameError)
Reviews (1): Last reviewed commit: "fix: Ignore inflections.rb in Zeitwerk a..." | Re-trigger Greptile |
Summary
inflections.rb, which defines a plain constant (WORKOS_INFLECTIONS) rather than a class/module matching the file nameinflections.rbto define anInflectionsconstant and raises aNameErroron loadCloses #459.
Test plan
bundle exec rakepasses with no ZeitwerkNameErrorAuthenticationMFAFailedresolve)