12
从Rails 3的lib文件夹加载模块/类的最佳方法?
由于最新的Rails 3版本不再从lib中自动加载模块和类,因此最好的加载方式是什么? 来自github: A few changes were done in this commit: Do not autoload code in *lib* for applications (now you need to explicitly require them). This makes an application behave closer to an engine (code in lib is still autoloaded for plugins);