machinist_mongo icon indicating copy to clipboard operation
machinist_mongo copied to clipboard

associations do not work on machinis2 branch with mongoid

Open dmitryame opened this issue 13 years ago • 2 comments

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

dmitryame avatar Mar 31 '11 21:03 dmitryame

+1 Same (similar?) problem with plain has_many associations:

Client.blueprint do patients(3) end

ArgumentError: Invalid arguments to attribute patients in blueprint

ahamid avatar May 23 '11 17:05 ahamid

error resolved with https://github.com/nmerouze/machinist_mongo/pull/16 but simple has_many association still does not appear to be created

ahamid avatar May 23 '11 18:05 ahamid