lib/sequel/plugins/validation_helpers.rb in sequel-4.44.0 vs lib/sequel/plugins/validation_helpers.rb in sequel-4.45.0

- old
+ new

@@ -242,9 +242,10 @@ from_values = opts[:from] == :values where = opts[:where] atts.each do |a| arr = Array(a) next if arr.any?{|x| errors.on(x)} + # SEQUEL5: Default only_if_modified to true next if opts[:only_if_modified] && !new? && !arr.any?{|x| changed_columns.include?(x)} ds = opts[:dataset] || model.dataset ds = if where where.call(ds, self, arr) else