Changeset [d1ac374758f3ab3830dd68be7810afa23845a791] by Emmanuel Gomez

October 28th, 2011 @ 01:36 AM

Revert to overriding Resource#save_self instead of using a hook.

This is a little disappointing, since I'm not a fan of overriding methods in Resource. That said, it restores the call to Resource#valid? when #save is called on a clean Resource, which is more important than my feelings on the matter.

Committed by Emmanuel Gomez

  • M lib/data_mapper/validation/resource_extensions.rb
  • M spec/data_mapper/validation/resource_extensions/save_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 »