Saturday, June 24, 2017

This Week in Rails: 5.1.2.rc1 released and faster fixtures

Posted by kirs

Hi there! This is Kir from chilling Ottawa, bringing you another edition of This Week in Rails. Let’s dive in.

🎉 This Week’s Rails contributors! 🎉

We had 21 awesome people who helped make Rails better this week, with one first-time contributor! Would you like to help as well? Head over to the 👉 issues list.

New

🎉 Rails 4.2.9.rc2, 5.0.4 and 5.1.2rc1 have been released 🎉

It’s your chance to help us discover bugs in 4.2.9 and 5.1.2 release candidates. Also, Rails 4.2.9 will be the last release in 4.2 series, so it’s time to upgrade if your app is still running on Rails 4.

Perf

Use bulk INSERT to insert fixtures

Inserting fixtures in test environment became significantly faster by using one bulk INSERT query instead of many single INSERTs.

Fixed

current_page? helper now works from within a Rails Engine

Due a bug related to a trailing slash, current_page? helper always returned false while it was supposed to return true when it was called from a Rails Engine route.

Keep INNER JOIN when merging relations

Now you can safely merge two ActiveRecord relations both having a JOIN. Previously, that would to query with LEFT OUTER JOIN instead of INNER JOIN.

That’s it for this week, as always, we couldn’t cover all of the changes, but feel free to check all the commits from this week.

Until next week! 👋👋