lib/pupa/processor.rb
def use_dependency_graph?(objects)
      objects.each do |id,object|
        object.foreign_objects.each do |property|
          if object[property].present?
            return false
          end
        end
      end
      true
    end
def use_dependency_graph?(objects)
      objects.each do |id,object|
        object.foreign_objects.each do |property|
          if object[property].present?
            return false
          end
        end
      end
      true
    end
def use_dependency_graph? ( objects ) objects . each do | id , object | object . foreign_objects . each do | property | if object [ property ] . present? return false end end end true end
If any objects have unresolved foreign objects, we cannot derive an
 evaluation order using a dependency graph.

 @param [Hash] objects a hash of scraped objects keyed by ID
 @return [Boolean] whether a dependency graph can be used to derive an
   evaluation order
If any objects have unresolved foreign objects we cannot derive an evaluation order using a dependency graph .