Rails 3.x 最新特性,开发环境只加载更新的文件了。

xds2000 · 2011年12月13日 · 最后由 hooopo 回复于 2012年02月04日 · 2265 次阅读

Speed up development by only reloading classes if dependencies files This can be turned off by setting config.reload_classes_only_on_change to false.

Extensions like Active Record should add their respective files like db/schema.rb and db/structure.sql to config.watchable_files if they want their changes to affect classes reloading.

Thanks to https://github.com/paneq/active_reload and Pastorino for the inspiration. <3

https://github.com/rails/rails/commit/fa1d9a884c0d5b70c97442e3360ac98ca5fa4340

<3<3<3<3<3

悲催的虎跑

这个是最近提交的?

#3 楼 @huacnlee 是呀 3.2(unreleased)

需要 登录 后方可回复, 如果你还没有账号请 注册新账号