def timeline_entities_for_model(model_class)
      @timeline_entities_for_model[model_class] ||= begin
        result = { }

        self.timelines.each do |timeline_kind, timeline_class|
          result[timeline_class] = [ ]

          timeline_class.routes.each do |route|
            entities_ary = @activity_entities[route.activity_class]
            (entities_ary || [ ]).each do |entity_name|
              result[timeline_class] << entity_name if (@entity_classes[entity_name] == model_class)
            end
          end

          result[timeline_class].uniq!
        end

        result
      end
    end
def timeline_entities_for_model(model_class)
      @timeline_entities_for_model[model_class] ||= begin
        result = { }

        self.timelines.each do |timeline_kind, timeline_class|
          result[timeline_class] = [ ]

          timeline_class.routes.each do |route|
            entities_ary = @activity_entities[route.activity_class]
            (entities_ary || [ ]).each do |entity_name|
              result[timeline_class] << entity_name if (@entity_classes[entity_name] == model_class)
            end
          end

          result[timeline_class].uniq!
        end

        result
      end
    end
Get all entities names by timelines that can have a reference to given model class

 @param model_class [Class] Model class
 @return [Hash{Class=>Array<Symbol>}] Lists of entities names indexed by timeline class