Link to QueryMethods#and [ci-skip]
Specifying `QueryMethods#and` instead of merely `and` avoids ambiguity with Ruby's `and` operator, and the `QueryMethods#and` documentation provides a usage example.
This commit is contained in:
parent
80709bfe7a
commit
016b796ee9
@ -29,7 +29,7 @@ def spawn # :nodoc:
|
||||
# This is mainly intended for sharing common conditions between multiple associations.
|
||||
#
|
||||
# For conditions that exist in both relations, those from <tt>other</tt> will take precedence.
|
||||
# To find the intersection of two relations, use <tt>and</tt>.
|
||||
# To find the intersection of two relations, use QueryMethods#and.
|
||||
def merge(other, *rest)
|
||||
if other.is_a?(Array)
|
||||
records & other
|
||||
|
Loading…
Reference in New Issue
Block a user