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

Improve AMo::Dirty *_will_change! method #6024

Merged
merged 1 commit into from Apr 28, 2012

Conversation

carlosantoniodasilva
Copy link
Member

Return earlier if attribute already changed in *_will_change! methods,
to avoid obtaining the value and duplicating it when possible.

Avoid obtaining the value and duplicating it when possible.
josevalim added a commit that referenced this pull request Apr 28, 2012
@josevalim josevalim merged commit d0e1c69 into rails:master Apr 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants