mirror of https://github.com/rails/rails
actual fix for #37285
This commit is contained in:
parent
149da8815c
commit
ac193d0cc3
|
@ -47,7 +47,7 @@ namespace :zeitwerk do
|
|||
eager_load[]
|
||||
rescue NameError => e
|
||||
if e.message =~ /expected file .*? to define constant \S+/
|
||||
abort $&.sub(/\A#{Regexp.escape(Rails.root.to_s)}./, "")
|
||||
abort $&.sub(/expected file #{Regexp.escape(Rails.root.to_s)}./, "expected file ")
|
||||
else
|
||||
raise
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue