Skip to content

Double-require overwrites aliased class method #1

Description

@stangel

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions