Disjunction in ActiveRecord
Posted
by samuil
on Stack Overflow
See other posts from Stack Overflow
or by samuil
Published on 2010-06-09T11:48:45Z
Indexed on
2010/06/09
11:52 UTC
Read the original article
Hit count: 207
Is it possible to use ActiveRecord named_scope
s to create one query with sql OR
clauses?
When I use
Model.scope1.scope2
generated query is conjunction of these scopes.
© Stack Overflow or respective owner