class ViewModel::Changes

def contained_to?(associations: [], attributes: [])

def contained_to?(associations: [], attributes: [])
  !deleted? &&
    changed_associations.all? { |assoc| associations.include?(assoc.to_s) } &&
    changed_attributes.all? { |attr| attributes.include?(attr.to_s) }
end