设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客

Rails 2.3.3 发布,更快的JSON

2009-7-21 14:16| 发布者: walkerxk| 查看: 1562| 评论: 0

该版本在修正了一些bug之外,还引入以下新特性:

Active Record

1. touch is a convenient method to update a record’s timestamp and nothing else. This is extracted from apps whose models “touch” others when they change, such as a comment updating the parent.replies_changed_at timestamp after save and destroy. Timestamping an entire has_many association makes it easy to build a key for fragment caching that covers changes to the parent object and any of its children. This pattern is wrapped up as belongs_to :parent, :touch => :replies_changed_at. When the child changes, parent.replies_changed_at is touched. :touch => true is defaults to :touch => :updated_at.
2. :primary_key option for belongs_to for broader support of legacy schemas and those using a separate UUID primary key: belongs_to :employee, :primary_key => 'SSN', :foreign_key => 'EMPID'

JSON

1. decoding backends for the json and yajl libraries.
2. leaner user-facing encoding API

其他方面

1. Add :concat option to asset tag helpers to force concatenation.
2. Restore backwards compatibility for AR::Base#to_xml.
3. Move from BlueCloth to Markdown for the markdown helper.

下载地址:http://rubyforge.org/frs/download.php/60600/rails-2.3.3.zip

详情请看这里


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部