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

Ensure that public/private scope of changes_applied, etc do not change #353

Closed
wants to merge 1 commit into from

Conversation

shioyama
Copy link
Owner

Previously, we were looking at the ActiveModel methods to se if they were private or public, and defining overrides accordingly. However, in some versions of Rails, the methods can be private in one module, but public in the other... so we need to ensure that the code actually looks at the correct +dirty_class+ to determine if the methods should be
public or private.

I never thought this dirty fix would be so complex...

Previously, we were looking at the Active*Model* methods to se if they
were private or public, and defining overrides accordingly. However, in
some versions of Rails, the methods can be private in one module, but
public in the other... so we need to ensure that the code actually looks
at the correct +dirty_class+ to determine if the methods should be
public or private.
@shioyama
Copy link
Owner Author

Merged in ad9c66d, accidentally cherry-picked it so this wasn't automatically merged/closed. I'll just close it now.

@shioyama shioyama closed this Oct 25, 2019
@shioyama shioyama deleted the fix_private_scoping branch October 25, 2019 06:38
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