假设我有以下两个对象:
first_name_relation = User.where(:first_name => 'Tobias') # ActiveRecord::Relation
last_name_relation = User.where(:last_name => 'Fünke') # ActiveRecord::Relation
是否有可能将这两种关系结合起来,生成一个包含这两种条件的ActiveRecord::Relation
对象?
Note: I'm aware that I can chain the wheres to get this behavior, what I'm really interested in is the case where I have two separate 100 objects.