Changeset [178bc58788b1e425a07ee3ba7871771cf22e2925] by Dan Kubb

February 2nd, 2010 @ 03:55 AM

Only validate a dirty resource when saving

  • Prevents multiple validations when saving parent and children, since previously every child that was saved would tell the parent to save too. Now the parent will be saved, and will not be be dirty any longer, so the unnecessary validation will be skipped.

[#1154 state:resolved]

Committed by Dan Kubb

  • M dm-validations/lib/dm-validations.rb
  • M dm-validations/spec/fixtures/barcode.rb
  • M dm-validations/spec/public/resource_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »