Validations are working beautifully except that in some cases where a
model has many associations, we don't need to validate them all when
saving the model.

It is possible to specify which associations should be validated when
saving?

(And I don't want to skip validations by just using .save!
or .update!)

I know that using contextual validations might provide a solution but
that would require many of the associated models to be defined with
contexts that are actually not directly relevant to them. Seems odd to
clutter them with details of contexts that are only relevant when
saving a different model.

(I suppose possible solution might be to specify a validation
context(s) where the association is defined. Perhaps that is not
possible. It would not be ideal but may be acceptable)

Many thanks,
George

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to