Closed msalvadores closed 11 years ago
We need to configure models with the following:
validates :hasContact, :instance_of => :contact_details
To enforce that in
object.hasContact << inst
inst is type of Contact. Where Contact is a the :contact_details model.
inst
Contact
:contact_details
Enable instance_of using classes not just model symbols:
instance_of
`validates :numbers , :instance_of => { :with => Fixnum }`
We need to configure models with the following:
To enforce that in
inst
is type ofContact
. Where Contact is a the:contact_details
model.