lib/mongoid/relations/referenced/many_to_many.rb in mongoid-6.1.0 vs lib/mongoid/relations/referenced/many_to_many.rb in mongoid-6.1.1
- old
+ new
@@ -35,11 +35,11 @@
# person.posts.push(post)
#
# @example Concat with other documents.
# person.posts.concat([ post_one, post_two ])
#
- # @param [ Document, Array<Document> ] *args Any number of documents.
+ # @param [ Document, Array<Document> ] args Any number of documents.
#
# @return [ Array<Document> ] The loaded docs.
#
# @since 2.0.0.beta.1
def <<(*args)
@@ -282,10 +282,10 @@
#
# @return [ true ] true.
#
# @since 3.0.0
def unsynced(doc, key)
- doc.synced[key] = false
+ doc._synced[key] = false
true
end
class << self