lib/mongoid/atomic/paths/embedded/many.rb in mongoid-8.1.7 vs lib/mongoid/atomic/paths/embedded/many.rb in mongoid-9.0.0

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Atomic module Paths module Embedded @@ -43,10 +44,10 @@ # existing functions for getting the position to store a document # require passing in a document to store, which we don't have when # trying to store the empty list. # # @param [ Document ] parent The parent document to store in. - # @param [ Association ] association The association. + # @param [ Mongoid::Association::Relatable ] association The association metadata. # # @return [ String ] The position string. def position_without_document(parent, association) pos = parent.atomic_position "#{pos}#{"." unless pos.blank?}#{association.store_as}"