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

Double-require overwrites aliased class method #1

Open
stangel opened this issue Apr 6, 2010 · 0 comments
Open

Double-require overwrites aliased class method #1

stangel opened this issue Apr 6, 2010 · 0 comments

Comments

@stangel
Copy link
Collaborator

stangel commented Apr 6, 2010

cache_class_method short-circuits if the method has already been aliased to the cached proxy. This is problematic because if you require the same file twice, the second pass will overwrite the aliased method with the original definition, thereby eliminating the caching altogether.

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

No branches or pull requests

1 participant