bitmask_attributes
bitmask_attributes copied to clipboard
Having different bitmask definition in subclasses does not work
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
:+1: