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

Disable AR::Dirty method overrides for AR >= 5.2 #120

Merged
merged 2 commits into from
Nov 30, 2017

Conversation

shioyama
Copy link
Owner

@shioyama shioyama commented Nov 30, 2017

These AM::Dirty methods are no longer overridden in AR::Dirty 5.2, so we don't need the overrides anymore.

This is no longer needed since attribute_will_change! is no longer
overridden by AR::Dirty.
@shioyama shioyama force-pushed the disable_dirty_method_overrides branch from 0459d04 to 8aebadb Compare November 30, 2017 12:25
end
model_class.extend has_attribute
Copy link
Owner Author

@shioyama shioyama Nov 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the first time in a long while I'm actually pleasantly surprised at changes in Rails. All this nasty stuff here we will be able to remove once we deprecate support for AR 5.1.

@shioyama shioyama merged commit 8aebadb into master Nov 30, 2017
@shioyama shioyama deleted the disable_dirty_method_overrides branch December 1, 2017 06:58
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