TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

What's new in Rails 4.1

12 点作者 kalv超过 11 年前

2 条评论

soulcutter超过 11 年前
I have a fairly strong aversion to the way they implemented enum for ActiveRecord - choosing to back it with ints and also leaking that implementation detail through using the ordering of the enums as the int is a bad choice. Also the method name collision issues that go along with that are just silly - it would be so much easier to just prefix the methods with the column name, e.g. #status_new?<p>There&#x27;s some other interesting stuff in there, though, and this is a good writeup of some interesting features.
steven_yue超过 11 年前
Great features. Now it really makes me to think about upgrading my rails 3 apps to 4.1