ruby / gem_rbs_collection

A collection of RBS for gems.
MIT License
246 stars 101 forks source link

activerecord: Fix AR::Relation#or can take other kinds of relation #524

Closed tk0miya closed 3 months ago

tk0miya commented 4 months ago

ActiveRecord::Relation#or can take not only the its own kind of relation but also other kinds of relation.

Example:

Blog.joins(:articles).merge(Blog.where(id: 1).or(Article.where(id: 1)))