aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2014-01-04 18:42:34 +0000
committerAndrew White <andyw@pixeltrix.co.uk>2014-01-04 18:42:34 +0000
commit3713e433667ee95caccb53a4062f540405272234 (patch)
tree42307a827be7815213d771eab0b6baf1efef6e34 /actionpack/test
parent81066b115817a4c95c83a76553954317f737cd14 (diff)
downloadrails-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 'actionpack/test')
0 files changed, 0 insertions, 0 deletions