lib/mongoid/relations/referenced/many_to_many.rb in mongoid-3.0.14 vs lib/mongoid/relations/referenced/many_to_many.rb in mongoid-3.0.15
- old
+ new
@@ -171,10 +171,10 @@
def substitute(replacement)
purge
unless replacement.blank?
push(replacement.compact.uniq)
else
- reset_relation_criteria
+ reset_unloaded
end
self
end
# Get a criteria for the documents without the default scoping