Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Mapping relations #61

Open
farnoy opened this issue Mar 10, 2011 · 0 comments
Open

Mapping relations #61

farnoy opened this issue Mar 10, 2011 · 0 comments

Comments

@farnoy
Copy link

farnoy commented Mar 10, 2011

It would be very interesting to have relations of versioned models. When modifications include id of an object, then it can be modified later, so it fails when we are recording changes to associations. The simplest way would be to define which method to call on associated object to record changes, for example: modifications would not look like
:post_id => 5
but
:post_name => "Test"
The more complicated way would be to record version of post and then revert to it. This requires keeping track of every changes, so the first way is better.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant