Closed pezholio closed 6 years ago
Hey @pezholio,
Which version of the gem are you using?
Cheers
1.0.0 👍
@pezholio It's because what you get as a response from create
and publish
is a CMA object, there the references are not hydrated. If you want the full reference, you should do Comment.find(comment.id).associated_record
, which is the CDA object.
Cheers
Ah, that makes sense, thanks! 👍
I have two models,
BlogPost
andComment
A
BlogPost
has manyComments
, and this seems to work most of the time. However, when running my tests, from time to time, when I try and get the associated blog post from a comment,ContentfulModel
returns a hash, rather than the actual model:Any ideas as to where I'm going wrong?