As you must have noticed by now, the last few issues were run by our newly assembled editorial team. (They have been doing a terrific job – and don't worry, you'll see more from them in the future!) If informing over 1300 subscribers about the latest news in Rails sounds like something you might enjoy doing, please definitely reach out to discuss how you can be part of our team!
Another RC has been released this week. We are steadily marching towards the final 4.2.0 release, still on track for our goal of getting it out the doors before Christmas time!
26 contributors have contributed to Rails this week, 6 of them are first-timers! Thanks everyone for putting your time and effort into improving Rails!
Due to increased use of prepared statements, Active Record now tries to proactively detect out-of-range queries and prevent them from being sent to the database. A bug in the previous implementation prevented it from working with unsigned integers correctly. This has now been fixed in RC3.
This fixes a regression in 4.2.0 RC2 where the auto-generated name for Rack applications has changed. Check out the awesome commit message that explained the change with examples!
If you had a "catch-all" route in your routes.rb, that would previously interfere with the Action Mailer preview feature introduced in Rails 4.1. Not anymore after this commit, as the routes are now prepended to the top of the routing table.
You can already customize the foreign key column on a has_one or has_many association. However, if the foreign association is a polymorphic one, you were out of luck. This pull request addressed the issue by making the foreign_type column name customizable as well.
If you relied on Action Mailer to magically turn your non-mailer instance methods into class methods, you should stop doing that and define them as actual class methods.
Note: the commit message contained a very unfortunate typo, it's supposed to read "are now deferred" instead of "are not deferred". Oops!
Wrapping up
That's all for This week in Rails. As always, there are more changes than we have room to cover here, but feel free to check them out yourself!