Changeset [e3bb9f1ff0726e512e1f5476b9bfeecaa219de9e] by Dan Kubb

August 18th, 2009 @ 02:25 AM

[dm-validations] Added specs for Resource#update w/validation context

  • Added Resource#update that handled the validation context
  • Removed unecessary Model#create! method
  • Updated the default_validation_context to check the context stack before returning the default label to use, in case we are nested inside another context.

[#882 state:resolved] http://github.com/datamapper/dm-...

Committed by Dan Kubb

  • A dm-validations/spec/public/resource_spec.rb
  • M dm-validations/Manifest.txt
  • M dm-validations/lib/dm-validations.rb
  • M dm-validations/lib/dm-validations/support/context.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 »