Skip to content

Initial and deleted versions and conditions#12

Open
javierv wants to merge 7 commits intoadamcooper:masterfrom
javierv:master
Open

Initial and deleted versions and conditions#12
javierv wants to merge 7 commits intoadamcooper:masterfrom
javierv:master

Conversation

@javierv
Copy link

@javierv javierv commented Feb 28, 2011

I've noticed that with the following options:

versioned dependent: :tracking, initial_version: true, unless: :really?

An initial version is always created and a version is always created after a deletion, no matter the result of "really?".

I guess it's up to debate whether it should behave that way or not (especially the deletion case), but, in case you think it shouldn't, here's a quick patch.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants