由于最新的Rails 3版本不再自动加载来自lib的模块和类,加载它们的最佳方法是什么?
来自github:
Run Code Online (Sandbox Code Playgroud)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);