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

Fix the scoping with query methods in the scope block #34572

Merged
merged 1 commit into from Nov 30, 2018

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented Nov 29, 2018

Follow up #33394.

#33394 only fixes the case of scoping with klass methods in the scope
block which invokes klass.all.
Query methods in the scope block also need to invoke klass.all to be
affected by the scoping.

Follow up rails#33394.

rails#33394 only fixes the case of scoping with klass methods in the scope
block which invokes `klass.all`.
Query methods in the scope block also need to invoke `klass.all` to be
affected by the scoping.
@kamipo kamipo merged commit 5c6316d into rails:master Nov 30, 2018
@kamipo kamipo deleted the fix_scoping_with_query_method branch November 30, 2018 12:41
kamipo added a commit that referenced this pull request Nov 30, 2018
Fix the scoping with query methods in the scope block
kamipo added a commit that referenced this pull request Nov 30, 2018
Fix the scoping with query methods in the scope block
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

1 participant