Changeset [e66c1bd0c98bff8b5fd383438369555b32835b1e] by Dan Kubb

November 10th, 2009 @ 01:12 AM

Fixed problem with Resource#save failing with custom properties

  • Resource#save now tests the loaded value rather than the dumped value for validity.
  • Updated variable names to differentiate between a loaded value and a dumped value. A loaded value is what is set within the Resource after retrieving/loading/typecasting it. A dumped value is what is stored in the datastore.
  • Fixed Object type so if loaded value is nil, it will just store nil rather than sending an encoded String to the datastore
  • Fixed Property#primitive? so that properties with a Text primitive can be tested for validity.
  • Added specs for Object type

[#1118 state:resolved]

Committed by Dan Kubb

  • A spec/public/property/object_spec.rb
  • M Manifest.txt
  • M dm-core.gemspec
  • M lib/dm-core/property.rb
  • M lib/dm-core/query/conditions/comparison.rb
  • M lib/dm-core/resource.rb
  • M lib/dm-core/types/object.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 »