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
We use amoeba to preview modifications on our data models, but we have an issue with deep inheritance as described below:
Basically a box has_many sub_products. In our example, box.sub_products returns SubSubProduct objects and we are unable to access to a parent class association, like in the graph above. box.amoeba_dup.sub_products.first.another_product returns nil instead of AnotherProduct instance.
Hi,
We use amoeba to preview modifications on our data models, but we have an issue with deep inheritance as described below:
Basically a box has_many sub_products. In our example,
box.sub_products
returns SubSubProduct objects and we are unable to access to a parent class association, like in the graph above.box.amoeba_dup.sub_products.first.another_product
returns nil instead of AnotherProduct instance.We have created a dummy app that reproduces the problem, you can find specs in the following repository: https://github.com/kdisneur/amoeba_inheritance
We've been really happy with amoeba so far and we're sorry we don't come with a fix (for now) but we wanted to share the issue with you.
Kevin
The text was updated successfully, but these errors were encountered: