どんどん実装
validates_children_of を追加。従属オブジェクトのvalidationを行うかどうかの設定をできるようにした。
class ValidatesChildrenOfTest class NestedClass include CouchResource::Struct include CouchResource::Validations number :age, :validates => [[ :numericality_of, { :greater_than => 10, :odd => true } ]] end include CouchResource::Struct include CouchResource::Validations string :title, :validates => [[:length_of, { :maximum => 10 }]] object :nest, :is_a => NestedClass, :validates => [[:children_of, { :allow_nil => true }]] end