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