Skip to content
This repository was archived by the owner on Jun 16, 2020. It is now read-only.
This repository was archived by the owner on Jun 16, 2020. It is now read-only.

Having different bitmask definition in subclasses does not work #48

@chak

Description

@chak

Hello,

I intended to use bitmask_attributes for email preferences. I have a few different types of organizations and I wanted to use inheritance to have a different definition for the bitmask options for each subclass. Unfortunately, this did not work because bitmask_attributes saves the definition of the bitmask in the base class rather than the class where it is defined. Is there a reason for this? Any workaround other than to not have an inheritance hierarchy in the classes using bitmask_attributes, or to use a different column for each inherited class?

Thanks,
Dan

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