Skip to content

Conversation

kvechera
Copy link

@kvechera kvechera commented Mar 14, 2020

Destroyed records and invalid records (unsaved) are mistakenly considered equal. Here is a patch to fix the comparison operation as well as to preserve the id of destroyed record (conforming with the Rails behavior)

records with equal non-nil id's are equal, but we need to
compare attributes if both id's are nil
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.

1 participant