change from singleton_class.ancestors.include? to is_a? for ProtocolBuffers::Enum