O'Reilly logo

Rails 5 Revealed by Alan Bradburne

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Alan Bradburne 2016

Alan Bradburne, Rails 5 Revealed, 10.1007/978-1-4842-1709-2_3

3. Active Record

Alan Bradburne

(1)Reading, UK

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required