# File lib/dm-core/collection.rb, line 938 def initialize(query, resources = nil) raise "#{self.class}#new with a block is deprecated" if block_given? @query = query @identity_map = IdentityMap.new @removed = Set.new super() # TODO: change LazyArray to not use a load proc at all remove_instance_variable(:@load_with_proc) if resources replace(resources) end end