Happy New Year, everyone!
It was only less than a year ago when I sent the first issue of
This week in Rails to a total of 14 recipients, discussing some
of the latest and greatest additions to the Rails codebase.
43 weeks later, this little hobby project has evolved into a true
community effort –- we have assembled an amazing team of
editors and other volunteers (join us!), keeping
2000 subscribers in the loop and highlighting some key contributions to our
beloved web framework every week.
I am incredibly excited to announce that starting this week, we will be cross-
posting the content from the newsletter to the Riding Rails blog. With
this, we hope to reach even more members of our wonderful community, increase
transparency, involve more of you in the decision-making processes and maybe
even inspire some future contributors!
I would like to thank my team at Brewhouse and Goodbits
for supporting the project and getting it off the ground, as well as all the
volunteers who helped along the way. Of course, huge thank you to all of the
Rails contributors who did all the hard work! <3 <3 <3
Without further ado, here is the first 2015 issue of This week in Rails!
Welcome to This week in Rails, your weekly inside scoop of interesting commits, pull requests and more from Rails.
Hi there this is Washington again!
Hope you all had the most gorgeous holidays ever doing things you love the most. The newsletter team is back to work and you should receive your Rails weekly news as usual. Here are some of the latest and greatest improvements, fixes and releases during the break.
YAY! December 25th saw another important Ruby release. See the blog post for all the goodies in this new version and keep in mind Rails 5 will target Ruby 2.2+ exclusively. As of this week, Rails’ master branch will only work on Ruby 2.2 or above.
4.0.13 is last planned release for the 4.0 release series, so you should migrate off it as soon as possible. From here on, the 4.1 (you can thank Rafael) and 4.2 release series will continue to receive regular bug fixes. Consult the maintenance policy for details.
Apparently holidays is no excuse for going to the beach all day long and having drinks away from computers. Rails community kept working hard during the break to keep improving the framework we appreciate so much. Thank you all!
As of Rails 5 callback chains won’t be halted by returning
false. Instead you should explicitly
throw :abort. This will help keep things consistent among all frameworks included in Rails and avoid accidental halting caused by unexpected
false return values.
Working with days and weeks just got a bit easier. Keep in mind these new helpers
prev_day. Perhaps you had even implemented them before yourself! Good thing Rails will have them out of the box now :)
Rails will ship with a new Active Record macro for generating base 58 tokens out of the box. There’s probably a large amount of applications already using this feature. As of the next major release you won’t need to add another dependency or implement it yourself.
Mailer generators now appends the
_mailer suffix in the filename just like controller and jobs generators.
This week Rails got some more love with this major clean up (339 additions and 1,433 deletions) on its master branch. There’s still some deprecations left though as the team figures how to best address them.
One More Thing™
Watch out library authors! Sean Griffin put a lot of effort into improving Arel extensibility. Please get in touch with him if you need APIs to help your use case. (See also these follow-up commits.)
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!
P.S. If you enjoyed this newsletter, why not share it with your friends? :) If you wish to be part of this project please don’t hesitate to contact Godfrey – there’re a lot of ways you could help make this newsletter more awesome!