Skip to content

Commit 767236c

Browse files
authored
fix(schema): generate the schema properly on server start while using the classic Autoloader using Rails 5 (#463)
1 parent ae642bf commit 767236c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/forest_liana/engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def eager_load_active_record_descendants app
6666
ActiveStorage::Attachment
6767
end
6868

69-
if Rails::VERSION::MAJOR > 5 && defined?(Zeitwerk::Loader)
69+
if Rails::VERSION::MAJOR > 5 && Rails.autoloaders.zeitwerk_enabled?
7070
Zeitwerk::Loader.eager_load_all
7171
else
7272
app.eager_load!

0 commit comments

Comments
 (0)