Rails Rails 4.1.2 and 4.0.6 released

huacnlee · 2014年06月27日 · 最后由 flowerwrong 回复于 2014年06月29日 · 2223 次阅读

升级了,ruby.taobao.org 现在很重要。。

大家升级 4.1.2 或 4.0.6 后如果 HABTM 的 collection 计算结果有问题的话请联系我:

4.1.2:

Fixed has_and_belongs_to_many's CollectionAssociation size calculation.

has_and_belongs_to_many should fall back to using the normal CollectionAssociation's size calculation if the collection is not cached or loaded.

Fixes #14913, #14914.

Fred Wu

https://github.com/rails/rails/blob/4-1-stable/activerecord/CHANGELOG.md

4.0.6:

Fixed has_and_belongs_to_many's CollectionAssociation size calculation.

has_and_belongs_to_many should not include new records as part of #count_records as new records are already counted.

Fixes #14914.

Fred Wu

https://github.com/rails/rails/blob/4-0-stable/activerecord/CHANGELOG.md

😏

#3 楼 @fredwu 厉害

has_and_belongs_to_many 现在是不是用 has_many through 替代了

#3 楼 @fredwu 想问一下 rails 4.0 运行在 ruby 2.1 上会有问题吗?

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