Query collections of ActiveModel objects like an ActiveRecord::Relation
Working with collections of ActiveModel
objects next to ActiveRecord
objects is always kinda awkward because the interfaces for filtering, sorting, and querying are so different ๐ซ This is why we just released ActiveModel::Relation
which attempts to provide the same interface to work with collections of ActiveModel
objects that youโre used to from ActiveRecord::Relation
๐ Check out the repository to learn more!
Post a comment