手机版
你好,游客 登录 注册
背景:
阅读新闻

Rails 3.2.3 RC1 发布

[日期:2012-03-29] 来源:Linux社区  作者:Linux [字体:大 中 小]

Rails 3.2.3 RC1 发布了,该版本修改了 config.active_record.whitelist_attributes 的默认值为 true,该版本会影响到新生成的应用程序,那些使用升级的用户不存在向后兼容性问题,更详细的信息请看 ruby on rails security guide

与 3.2.2 版本比较,该版本改进记录:

Action Mailer

  • Upgrade mail version to 2.4.3 ML

Action Pack

  • Do not include the authenticity token in forms where remote: true as ajax forms use the meta-tag value DHH
  • Turn off verbose mode of rack-cache, we still have X-Rack-Cache to check that info. Closes #5245. Santiago Pastorino
  • Fix #5238, rendered_format is not set when template is not rendered. Piotr Sarnacki
  • Upgrade rack-cache to 1.2. José Valim
  • ActionController::SessionManagement is deprecated. Santiago Pastorino
  • Since the router holds references to many parts of the system like engines, controllers and the application itself, inspecting the route set can actually be really slow, therefore we default alias inspect to to_s. José Valim
  • Add a new line after the textarea opening tag. Closes #393 rafaelfranca
  • Always pass a respond block from to responder. We should let the responder to decide what to do with the given overridden response block, and not short circuit it. sikachu
  • Fixes layout rendering regression from 3.2.2. José Valim

Active Model

  • No changes

Active Record

  • Added find_or_create_by_{attribute}! dynamic method. Andrew White
  • Whitelist all attribute assignment by default. Change the default for newly generated applications to whitelist all attribute assignment. Also update the generated model classes so users are reminded of the importance of attr_accessible. NZKoz
  • Update ActiveRecord::AttributeMethods#attribute_present? to return false for empty strings. Jacobkg
  • Fix associations when using per class databases. larskanis
  • Revert setting NOT NULL constraints in add_timestamps fxn
  • Fix mysql to use proper text types. Fixes #3931. kennyj
  • Fix #5069 - Protect foreign key from mass assignment through association builder. byroot

更多关于Rails的详细信息,或者下载地址请点这里

linux
相关资讯       Rails 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款