bitmask_attributes icon indicating copy to clipboard operation
bitmask_attributes copied to clipboard

Having different bitmask definition in subclasses does not work

Open chak opened this issue 12 years ago • 1 comments

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

chak avatar Jun 14 '13 18:06 chak

:+1:

epylinkn avatar Nov 10 '13 02:11 epylinkn