Changeset [8785fbe01a36f6b2bd5e32317bdd085e0147b433] by Markus Schirp

December 11th, 2011 @ 03:34 PM

Raise on persisting invalid properties

This improves cases where Resource#{save,update} simply returns false
with no hint what was wrong. This mostly happens when developing custom
properties.
https://github.com/datamapper/dm-core/commit/8785fbe01a36f6b2bd5e32...

Committed by Markus Schirp

  • A lib/dm-core/property/invalid_value_error.rb
  • M lib/dm-core.rb
  • M lib/dm-core/collection.rb
  • M lib/dm-core/property.rb
  • M lib/dm-core/property/serial.rb
  • M lib/dm-core/resource/persistence_state/dirty.rb
  • M lib/dm-core/resource/persistence_state/transient.rb
  • M lib/dm-core/spec/shared/resource_spec.rb
  • M lib/dm-core/spec/shared/semipublic/property_spec.rb
  • M spec/public/model_spec.rb
  • M spec/public/resource_spec.rb
  • M spec/public/shared/collection_shared_spec.rb
  • M spec/semipublic/resource/state/dirty_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 »