Welcome back to This week month in Rails! Please forgive me for taking an unannounced summer break, but I'm back now with a brand new issue of your favorite newsletter!
With a new logo (thanks @ChuckBergeron and a new format – and most importantly, all these amazing contributions happening in Rails – I think this is one of our best issue yet!
These security releases addressed several vulnerabilities in Rails and everyone is advised to upgrade as soon as possible. To make the upgrade easy, they only contain the commits that's necessary to address the relevant security issues.
One of first major feature to look forward to in Rails 4.2 – you can now add foreign key constraints directly in your migrations. Can't wait? Check out the foreigner gem to start using them today!
If you haven't heard about it yet, "rosetta flash" is a very clever vulnerability that involves abusing JSONP endpoints to trick the server to serve up a malicious flash file.
If you have been using strong parameters, you might have seen it complain about the unpermitted format parameter or something similar. With this new config you can whitelist some attributes that are always permitted globally.
Once upon a time, there was a buggy version of Safari that would break when an Ajax request returned an empty body. Since the bug has been fixed a long time ago, it's time for us to remove our workaround!
Last time we mentioned that Active Record has (finally) learned to track inline changes in serialized attributes so they can be saved lazily as well. Since then, this support has been expanded to cover other columns such as strings, arrays and more.
Mailer previews was one of my favourite features in Rails 4.1. Want to share your awesome email templates with your marketing department too? Now you can enable this feature on your staging environment with this new setting.
If you are using around callbacks in your application, you might want to double check that they have the right signature before you upgrade to Rails 4.1.
Wrapping up
And that's it for this issue of This week month in Rails. As always, there are way too many changes on Rails to cover in this newsletter, so I encourage you to check them out!
If you have any feedback for me, please feel free to email me or let me know on twitter! Thank you for reading! <3 <3 <3