Tag Archives: activerecord

Rails 5 adds ActiveRecord or

Here’s a long awaited feature that is added in Rails 5: ActiveRecord or. Previously you had to use ARel or resort to a SQL snippet: Now you can do: In other words: you first build a relation, then use the or method on it passing in as an argument another relation. These two relations must […]

Posted in Technology | Also tagged , | Leave a comment