diff options
author | Xavier Noria <fxn@hashref.com> | 2019-03-30 12:20:00 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2019-03-30 13:01:42 +0100 |
commit | a3e061def14b50b86d9366d45565a4ad2efb0b08 (patch) | |
tree | 595a53246a027879e527acc176e612f2b69713e6 /railties/test/application/rendering_test.rb | |
parent | 278f0dfeac03e9e9d57eae8f4618ff94d8584abe (diff) | |
download | rails-a3e061def14b50b86d9366d45565a4ad2efb0b08.tar.gz rails-a3e061def14b50b86d9366d45565a4ad2efb0b08.tar.bz2 rails-a3e061def14b50b86d9366d45565a4ad2efb0b08.zip |
optimizes eager loading in :zeitwerk mode
During initialization, the eager load paths of engines are unshifted
into AS::Dependencies.autoload_paths. After that, the collection is
frozen. (See the initializers in railties/lib/rails/engine.rb.)
Hence, there is no eager load path that is not an autoload path too, and
so the array difference in the deleted code is always an empty array.
Just do nothing.
Diffstat (limited to 'railties/test/application/rendering_test.rb')
0 files changed, 0 insertions, 0 deletions