app/cms/scrivito/model_library.rb in scrivito_sdk-1.17.0 vs app/cms/scrivito/model_library.rb in scrivito_sdk-1.18.0.rc1
- old
+ new
@@ -112,10 +112,10 @@
@require_dependencies ||= begin
paths.each do |path|
Dir["#{path}/**/*.rb"].sort.each do |file_path|
begin
require_dependency(file_path)
- rescue TypeError => e
+ rescue TypeError, Zeitwerk::NameError => e
raise e if file_path.starts_with?(Rails.root.to_s)
end
end
end
end