def changes
      _changes = {}
      changed.each do |attr|
        change = attribute_change(attr)
        _changes[attr] = change if change
      end
      _changes.with_indifferent_access
    end
def changes
      _changes = {}
      changed.each do |attr|
        change = attribute_change(attr)
        _changes[attr] = change if change
      end
      _changes.with_indifferent_access
    end
Get all the changes for the document.

 @example Get all the changes.
   model.changes

 @return [ Hash<String, Array<Object, Object> ] The changes.

 @since 2.4.0