Skip to content

Current implementation creates a Singleton class and prevents marshaling  #16

@mynock

Description

@mynock

This line:
eval "class <<str; def html_truncated?; #{opts[:was_truncated]} end end"

causes a singleton class to be returned which prevents the field from being serialized using Marshal (and therefore prevents it from being cached using dalli/memcached).

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