开发者

What is difference between load_path & auto load_path in rails?

开发者 https://www.devze.com 2023-03-10 06:51 出处:网络
What is difference between load path & auto load path? if i have added any dir 开发者_Go百科to auto-load path then should i need to require that file in my code?I assume you meant autoload_paths :

What is difference between load path & auto load path? if i have added any dir 开发者_Go百科to auto-load path then should i need to require that file in my code?


I assume you meant autoload_paths :

From documentation:

config.autoload_paths accepts an array of additional paths to prepend to the load path. By default, all app, lib, vendor and mock paths are included in this list.

Source

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号