Replacing depreciated function class_inheritable_accessor with class_attribute