【发布时间】:2011-03-22 08:49:52
【问题描述】:
由于最新的 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);
【问题讨论】:
标签: ruby-on-rails class module autoload ruby-on-rails-3