app/models/manager_refresh/inventory_collection.rb
def targeted_arel_default
      if parent_inventory_collections.collect { |x| x.model_class.base_class }.uniq.count > 1
        raise "Multiple :parent_inventory_collections with different base class are not supported by default. Write "\
              ":targeted_arel manually, or separate [#{self}] into 2 InventoryCollection objects."
      end
      parent_collection = parent_inventory_collections.first
      references        = parent_inventory_collections.collect(&:targeted_scope).reduce({}, :merge!)

      parent_collection.targeted_iterator_for(references, full_collection_for_comparison)
    end
# Builds targeted query limiting the results by the :references defined in parent_inventory_collections
#
# @return [ManagerRefresh::ApplicationRecordIterator] an iterator for default targeted arel
Builds targeted query limiting the results by the :references defined in parent_inventory_collections
Builds targeted query limiting the results by the : references defined in parent_inventory_collections
def targeted_arel_default
      if parent_inventory_collections.collect { |x| x.model_class.base_class }.uniq.count > 1
        raise "Multiple :parent_inventory_collections with different base class are not supported by default. Write "\
              ":targeted_arel manually, or separate [#{self}] into 2 InventoryCollection objects."
      end
      parent_collection = parent_inventory_collections.first
      references        = parent_inventory_collections.collect(&:targeted_scope).reduce({}, :merge!)
      parent_collection.targeted_iterator_for(references, full_collection_for_comparison)
    end
def targeted_arel_default if parent_inventory_collections . collect { | x | x . model_class . base_class } . uniq . count > 1 raise "Multiple :parent_inventory_collections with different base class are not supported by default. Write " ":targeted_arel manually, or separate [#{self}] into 2 InventoryCollection objects." end parent_collection = parent_inventory_collections . first references = parent_inventory_collections . collect ( & :targeted_scope ) . reduce ( { } , :merge! ) parent_collection . targeted_iterator_for ( references , full_collection_for_comparison ) end
Builds targeted query limiting the results by the :references defined in parent_inventory_collections
Builds targeted query limiting the results by the : references defined in parent_inventory_collections
an iterator for default targeted arel
an iterator for default targeted arel
ManagerRefresh::ApplicationRecordIterator