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
I am trying to use Logidze to track associations changes.
Let say i have this:
Container v1
item1 v1
Then I add another item, so now I have
Container v1
item1 v1
item2 v1
then at some time, i edit one item and get
Container v1
item1 v2
item2 v1
It is unclear to me how I could load each of those three states, or even determine that they exist.
I tried using a "previous version" link that loads container.at(version: container.log_version - 1) to get the previous version of container, and @container.items.at(time: @container.updated_at) to get the items, but this it does not track all changes to the children as i need.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to use Logidze to track associations changes.
Let say i have this:
Container v1
Then I add another item, so now I have
Container v1
then at some time, i edit one item and get
Container v1
It is unclear to me how I could load each of those three states, or even determine that they exist.
I tried using a "previous version" link that loads container.at(version: container.log_version - 1) to get the previous version of container, and @container.items.at(time: @container.updated_at) to get the items, but this it does not track all changes to the children as i need.
Beta Was this translation helpful? Give feedback.
All reactions