notahat / machinist

Fixtures aren't fun. Machinist is.
MIT License
1.12k stars 134 forks source link

blueprint for mongoid embeds_many association #41

Closed krishna-shilpakar closed 14 years ago

krishna-shilpakar commented 14 years ago

I am using machinist and mongoid. How can I generate blueprint for embeds_many association. Mongoid embeds_many association embeds the hash of array. So I just started like this:

 User.blueprint do
   address { :address1 => "address", :address2 => 'next address'}
 end

Is this right way of defining? I don't feel good in this way.

notahat commented 14 years ago

You should take this to the mailing list.