from Hacker News

What's new in Rails 4.1

by kalv on 12/18/13, 12:47 AM with 2 comments

  • by soulcutter on 12/20/13, 4:39 PM

    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?

    There's some other interesting stuff in there, though, and this is a good writeup of some interesting features.

  • by steven_yue on 12/18/13, 12:51 PM

    Great features. Now it really makes me to think about upgrading my rails 3 apps to 4.1