def apply_default_scoping
      if default_scoping
        default_scoping.call.selector.each do |field, value|
          attributes[field] = value unless value.respond_to?(:each)
        end
      end
    end
def apply_default_scoping
      if default_scoping
        default_scoping.call.selector.each do |field, value|
          attributes[field] = value unless value.respond_to?(:each)
        end
      end
    end
Apply the default scoping to the attributes of the document, as long as
 they are not complex queries.

 @api private

 @example Apply the default scoping.
   document.apply_default_scoping

 @return [ true, false ] If default scoping was applied.

 @since 4.0.0