lib/batch_loader/executor_proxy.rb in batch-loader-1.2.1 vs lib/batch_loader/executor_proxy.rb in batch-loader-1.2.2
- old
+ new
@@ -7,10 +7,10 @@
attr_reader :default_value, :block, :global_executor
def initialize(default_value, key, &block)
@default_value = default_value
@block = block
- @block_hash_key = "#{key}#{block.source_location}"
+ @block_hash_key = [block.source_location, key]
@global_executor = BatchLoader::Executor.ensure_current
end
def add(item:)
items_to_load << item