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

Having different bitmask definition in subclasses does not work #48

Open
chak opened this issue Jun 14, 2013 · 1 comment
Open

Having different bitmask definition in subclasses does not work #48

chak opened this issue Jun 14, 2013 · 1 comment

Comments

@chak
Copy link

chak commented Jun 14, 2013

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

@epylinkn
Copy link

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants