Active Record is a vital part of the majority of Rails applications, so it’s great to see that it is constantly being refined, optimized, and improved upon. The Rails 4.2 release brought large performance improvements and Rails 5 improves upon this further still.
It goes without saying that many hundreds of small bug fixes and tweaks have been committed to the latest version of Active Record, but in this chapter, I concentrate on the biggest and most important changes and additions, and I note any relevant fixes.
The Arel OR Condition
Rails 5 adds a very useful or condition to the Active Record Query Interface , equivalent ...