class Elasticsearch::Model::Extensions::AssociationPathFinding::AssociationPathFinder
Public Instance Methods
find_path(from:, to:)
click to toggle source
# File lib/elasticsearch/model/extensions/association_path_finding/association_path_finder.rb, line 8 def find_path(from:, to:) MappingNode. from_class(from). breadth_first_search { |e| e.destination.relates_to_class?(to) }. first end