diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2014-01-04 18:42:34 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2014-01-04 18:42:34 +0000 |
commit | 3713e433667ee95caccb53a4062f540405272234 (patch) | |
tree | 42307a827be7815213d771eab0b6baf1efef6e34 /railties/test/env_helpers.rb | |
parent | 81066b115817a4c95c83a76553954317f737cd14 (diff) | |
download | rails-3713e433667ee95caccb53a4062f540405272234.tar.gz rails-3713e433667ee95caccb53a4062f540405272234.tar.bz2 rails-3713e433667ee95caccb53a4062f540405272234.zip |
Add preview_path to autoload_paths in after_initialize
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
Diffstat (limited to 'railties/test/env_helpers.rb')
0 files changed, 0 insertions, 0 deletions