Skip to content

Double-require overwrites aliased class method #1

@stangel

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.

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