couchrest_model/spec/fixtures
Kostiantyn Kahanskyi 1b5c431053 Should be able to set contextual validations
Contextual validations are active __only__ within
an appropriate context: either ”create" or ”update”.

validates(:name, :presence => true, :on => :create)

validates(:name, :presence => {:on => :update})

See http://edgeguides.rubyonrails.org/active_record_validations_callbacks.html#on

Should fix https://github.com/couchrest/couchrest_model/pull/90
2011-06-08 22:54:35 +02:00
..
attachments Added basic specs for attachment CRUD 2009-01-12 21:06:48 -08:00
config Working on adding automated configuration support 2011-04-29 21:40:36 +02:00
more Should be able to assign a casted hash to a hash property 2011-06-07 20:57:48 -03:00
views brought file manager back in as a class 2008-08-02 00:03:54 -07:00
base.rb Should be able to set contextual validations 2011-06-08 22:54:35 +02:00