Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy original attributes during record.dup() as well. #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bguban
Copy link

@bguban bguban commented Nov 12, 2020

Currently, if you duplicate a record using the dup() function it doesn't copy original attribute values. It leads to a problem that changed attributes are not seen in changes().

@bguban bguban changed the title Copy dry attributes during record.dup() as well. Copy original attributes during record.dup() as well. Nov 12, 2020
@wadetandy
Copy link
Contributor

Looks like a good fix! Would you mind adding a corresponding spec too?

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.

2 participants