Skip to content

@only_fields and @except_fields memoization is wrong #149

Closed
@marshall-lee

Description

@marshall-lee

only_fields and except_fields methods internally memoizing @only_fields and @except_fields instance variables respectively. It's wrong because they're calculated against passed options parameter which can differ between separate serializable_hash calls.

I'd open a PR later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions