Skip to content

Commit

Permalink
Explicitly load descendants patch in ActiveSupport (#924)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaanOzkan committed May 5, 2022
1 parent 409e08d commit ef8cb9f
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit ef8cb9f

Please sign in to comment.