Issue 13466: Named scopes evaluated with instance_eval. ScopeRegistry us... #14189

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@jefflai2
Contributor

jefflai2 commented Feb 25, 2014

...es class instead of base_class

Jefferson Lai Jefferson Lai
Fixes Issue #13466.
Changed the call to a scope block to be evaluated with instance_eval.
The result is that ScopeRegistry can use the actual class instead of base_class when
caching scopes so queries made by classes with a common ancestor won't leak scopes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment