Rails 5.0.0.beta1 發布,Action Cable/API 模式
Rails 5.0!Rails 團隊前幾天剛剛慶祝 Rails 1.0發布十周年,現在只是測試版本, 但是 Rails 5.0.0.beta1 已經在生產環境運行 Basecamp 3。
Rails 5.0 Beta1 版本主要改進:全新處理 WebSockets 框架 Action Cable;新 API 模式 --api;Rails 命令都提供在 bin/rails 。
其他值得關注的新特性:
- </li>
-
The test runner now reports failures inline, so you don't have to complete the suite to see what went wrong.
</li> -
ApplicationRecord has been born as a default parent class of all models created by the generators.
</li> -
ActiveRecord::Relation#in_batches makes it much easier to deal with record work in batches at a time to lessen memory overloads.
</li> -
Post.where('id = 1').or(Post.where('id = 2')) gives you exactly what you'd think!
</li> -
No more accidentally halting Active Record callbacks because the last statement is false. Now you throw(:abort) explicitly!
</li> </ul>詳細改進列表:
- </li>
- </li>
- </li>
- </li>
- </li>
- </li>
- </li>
-
</li>
</ul>
來自:http://www.oschina.net/news/69137/rails-5-0-0-beta1
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!