Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly load descendants patch in ActiveSupport #924

Merged
merged 1 commit into from May 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/tapioca/runtime/loader.rb
Expand Up @@ -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
Expand Down