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
So yea that does appear to be incorrect not sure why though. My guess would be that since you haven't saved the product it's master variant isn't created yet.
@JDutil My hunch was also that it was coming from the fact that these records not having been persisted to the db yet. Is this worth looking into, or is it simply not designed to need to work in these cases?
It should work if the variant exists, which it appears to exist if you can reference the association. I have the feeling there is something funky going on with how rails is handling the association, and the record may need to be persisted for it to work properly I'm not sure.
In the latest
2-3-master
, if I open a Rails console, I can produce the following unexpected behavior:Here's where things appear to get strange:
Am I missing something here? I am expecting
package.contents[0].variant.weight
to equalproduct.master.weight
. . .The text was updated successfully, but these errors were encountered: