Hello everyone! This is Roque bringing the latest from the last two weeks.
The last couple of weeks have been very busy with the releasing of Rails 5.1.0.rc1 and the starting of Rails 5.2 🎉
Congratulations to all involved!!
Please check it out and help the community by reporting issues before 5.1 is released.
If you are already using encrypted secrets, make sure to run this script to upgrade your app.
Are you a student, or know someone who would love to contribute to Rails? Our GSoC students application is now open! Check out our ideas page and join us on the mailing list for discussion.
Have you also been waiting for this? No more. The schedule is live and looks awesome!
The :default option adds a before_validation callback that initializes the association with the given lambda’s return value:
belongs_to :person, default: -> {​ Current.person }​
This is a work ahead of the upcoming Ruby changes.
This fixes an issue with frozen that has been around since Rails 4.
The Active Record order method is no longer restricted to attribute names. It now accepts expressions like:
Post.order(“LENGTH(title)” => :asc).last
There were many other great pull requests this week from 45 contributors, including 8 first-timers. Thank you all!
Until next week!