def parent_class_name(obj)
      unless DEFAULT_PARENTS.include? obj.class.superclass
        return obj.class.base_class.name
      end

      obj.class.name
    end
def parent_class_name(obj)
      unless DEFAULT_PARENTS.include? obj.class.superclass
        return obj.class.base_class.name
      end

      obj.class.name
    end
Retrieves the parent class name if using STI.