Working with collections of ActiveModel objects alongside ActiveRecord objects has been challenging due to differing interfaces. This prompted the release of ActiveModel::Relation.
ActiveModel::Relation aims to bridge the gap by providing a unified interface for filtering, sorting, and querying, similar to ActiveRecord::Relation.
With ActiveModel::Relation, developers can expect a more cohesive experience when handling collections of ActiveModel objects, streamlining their workflow.
This new feature not only simplifies code but also enhances productivity by allowing developers to rely on familiar methods while working with non-ActiveRecord models.
Collection
[
|
...
]