Rails Rails 4.2.0 beta1: Active Job, Deliver Later, Adequate Record, Web Console

Rei · 2014年08月20日 · 最后由 luikore 回复于 2014年08月21日 · 3917 次阅读

越来越臃肿了

据 tenderlove 说,4.2 将是 Rails 历史上最快的!?

4.x 最后一个大更新,下一个就是 5 了。

web console 可以直接集成到编辑器里呢 adequate record -- 通过缓存静态的查询条件提升 AR 性能 100%, 越来越像完整的编译器了...

inherited resources 的同学们注意了,4.2 版本的 responder 更改导致 inherited resources 无法使用。

上了 Web Console 以后是不是会有很多的新手让这里成为漏洞啊

#9 楼 @fredwu 移除了 respond_with, 再独立安装 https://github.com/plataformatec/responders ,应该可以继续使用。

最后两项关于 config 的新特性很好!

The killing feature is GlobalID

The cherry on top is our new GlobalID library.

campo 跟么?

~~已第一时间升级 😄 ~~ 刚才升级后,redirect_to 方法出 bug 了

migration 的 t.references 可以指定 type 了。比如

The #references method in migrations now supports a type option for specifying the type of the foreign key (e.g. :uuid).

change_table :vehicle do |t|
  t.references :station, type: :uuid
end

(Pull Request)

另外,感觉对 PostgreSQL 的支持越来越多了。

@luikore 当初 tenderlove 说 Adequate Record 实现复杂,这个会不会成为 Identity Map 那样的存在失败掉...

#18 楼 @jasl 基本想法是靠谱的,失败掉就重新写一个呗... 结果是内存会上升不过 gc 和运算减少...

#15 楼 @huobazi beta 不跟,现在主要精力不在这个项目。

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