pocke / rbs_rails

Apache License 2.0
285 stars 33 forks source link

Override types of CollectionProxy #289

Open tk0miya opened 1 week ago

tk0miya commented 1 week ago

To precise the types of CollectionProxy, this overrides their types.

refs: https://api.rubyonrails.org/v8.0/classes/ActiveRecord/Associations/CollectionProxy.html

tk0miya commented 5 days 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).