Open tk0miya opened 1 week ago
It would be nice if we could define an abstract module for CollectionProxy like ActiveRecord::Relation::Methods
(or _ActiveRecord_Relation
) and ActiveRecord::Base::ClassMethods
(or _ActiveRecord_Relation_ClassMethods
).
To precise the types of CollectionProxy, this overrides their types.
refs: https://api.rubyonrails.org/v8.0/classes/ActiveRecord/Associations/CollectionProxy.html