fix read_inheritable_attribute deprecated error in enumerations_mixin

Fixed NoMethodError: undefined method `read_inheritable_attribute'