machinist_mongo
machinist_mongo copied to clipboard
associations do not work on machinis2 branch with mongoid
in below example the user assotiation does not work
have to specify user { User.make } which is hacky
Convo.blueprint do title {"title#{sn}"} privacy {'public'} user end
Potentially because the assotiation on Convo is described as embedded like this:
embeds_one :user
+1 Same (similar?) problem with plain has_many associations:
Client.blueprint do patients(3) end
ArgumentError: Invalid arguments to attribute patients in blueprint
error resolved with https://github.com/nmerouze/machinist_mongo/pull/16 but simple has_many association still does not appear to be created