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

Propagate association extensions to scopes called on the association. #174

Closed
wants to merge 1 commit into from
Closed

Conversation

glv
Copy link
Contributor

@glv glv commented Jan 29, 2011

Extension modules defined on associations are added to the association proxy itself, but are not propagated to scopes created from that association proxy. This commit fixes that.

(The two assertions in the test case cover both built-in scope methods such as where, limit, etc., as well as scopes defined on the target class of the association. During initial development, I tried a solution that addressed built-in scopes but failed for named scopes on the target class.)

@spastorino
Copy link
Contributor

Can you rebase your patch please? it doesn't apply cleanly on master anymore.

matthewd pushed a commit that referenced this pull request Apr 24, 2018
Revert fixes involving issue #99 (which makes Arel unusable in large datasets)
This pull request was closed.
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