couchrest_model/spec
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
..
couchrest Should be able to set contextual validations 2011-06-08 22:54:35 +02:00
fixtures Should be able to set contextual validations 2011-06-08 22:54:35 +02:00
.gitignore move tmp dir for specs; 2009-01-08 22:18:06 -08:00
spec_helper.rb Refactoring design doc manipulation for a much simpler and more reliable approach 2011-04-17 02:46:33 +02:00