From 96ef0336dce059e8f89190a5a1dd76bcbac53220 Mon Sep 17 00:00:00 2001 From: "Garen J. Torikian" Date: Fri, 24 Apr 2026 13:24:21 -0400 Subject: [PATCH] fix: Ignore inflections.rb in Zeitwerk autoloader `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. --- lib/workos.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/workos.rb b/lib/workos.rb index 5e7621fc..2b9b84f9 100644 --- a/lib/workos.rb +++ b/lib/workos.rb @@ -30,6 +30,7 @@ module WorkOS loader.collapse("#{__dir__}/workos/webhooks") loader.collapse("#{__dir__}/workos/widgets") loader.ignore("#{__dir__}/workos/errors.rb") +loader.ignore("#{__dir__}/workos/inflections.rb") loader.setup require "workos/errors"