From ef8cb9fcceb0d6f6eb7d5d7bdfa1347f71ced646 Mon Sep 17 00:00:00 2001 From: Kaan Date: Thu, 5 May 2022 12:28:20 -0400 Subject: [PATCH] Explicitly load descendants patch in ActiveSupport (#924) --- lib/tapioca/runtime/loader.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tapioca/runtime/loader.rb b/lib/tapioca/runtime/loader.rb index 294f26775..9d584daae 100644 --- a/lib/tapioca/runtime/loader.rb +++ b/lib/tapioca/runtime/loader.rb @@ -52,6 +52,8 @@ def require_helper(file) def rails_engines return [] unless Object.const_defined?("Rails::Engine") + safe_require("active_support/core_ext/class/subclasses") + # We can use `Class#descendants` here, since we know Rails is loaded Object.const_get("Rails::Engine").descendants.reject(&:abstract_railtie?) end