mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
3713e43366
Only config.autoload_paths is frozen, so add the preview_path to ActiveSupport::Dependencies.autoload_paths directly in an after_initialize block. Also protect against a blank preview_path being added to autoload_paths which can cause a serious slowdown as Dir[] tries to load all *_preview.rb files under / Fixes #13372 |
||
---|---|---|
.. | ||
initializers | ||
middleware | ||
rack | ||
rake | ||
asset_debugging_test.rb | ||
assets_test.rb | ||
build_original_fullpath_test.rb | ||
configuration_test.rb | ||
console_test.rb | ||
generators_test.rb | ||
loading_test.rb | ||
mailer_previews_test.rb | ||
middleware_test.rb | ||
multiple_applications_test.rb | ||
paths_test.rb | ||
rackup_test.rb | ||
rake_test.rb | ||
rendering_test.rb | ||
routing_test.rb | ||
runner_test.rb | ||
test_runner_test.rb | ||
test_test.rb | ||
url_generation_test.rb |