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 |
||
---|---|---|
.. | ||
action_mailer | ||
rails/generators/mailer | ||
action_mailer.rb |