You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I pass the existing post via the override params, it will attach the existing post to the comment, but the comment always creates a random post by default, which I don’t want. I think we should check if the override params don’t contain the association, then create the default; that will make sense.
Can anyone help me on this? Thank you
The text was updated successfully, but these errors were encountered:
Here’s is my case.
Expectation
: Create a comment with the existing postReality
: Create a comment with the existing post and create a random post from the comment factoryPost factory
When I pass the existing post via the override params, it will attach the existing post to the comment, but the comment always creates a random post by default, which I don’t want. I think we should check if the override params don’t contain the association, then create the default; that will make sense.
Can anyone help me on this? Thank you
The text was updated successfully, but these errors were encountered: