Change write_inheritable_attribute to class_attribute