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

Always add lambda to scope chain to eliminate branch in eval_scope #16801

Conversation

eileencodes
Copy link
Member

We convert all other scopes to lambda's so it makes sense that we should always returns a lambda on a ThroughReflection as well. This eliminates the need to check if the scope is a Relation.

We convert all other scopes to lambda's so it makes sense that we should
always returns a lambda on a ThroughReflection as well. This eliminates
the need to check if the scope is a Relation.
@eileencodes eileencodes force-pushed the refactor-scope_chain-on-through-refelction-to-eliminate-branch-in-eval_scope branch from 866d671 to 0b6358b Compare September 4, 2014 12:16
rafaelfranca added a commit that referenced this pull request Sep 4, 2014
…rough-refelction-to-eliminate-branch-in-eval_scope

Always add lambda to scope chain to eliminate branch in eval_scope
@rafaelfranca rafaelfranca merged commit 40f9407 into rails:master Sep 4, 2014
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.

None yet

2 participants