has_many and has_one association will now infer class of object correctly