Skip to content

Commit

Permalink
Identify by both custom key and block.source_location
Browse files Browse the repository at this point in the history
  • Loading branch information
exAspArk committed Nov 13, 2017
1 parent 6be8061 commit ba887f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/batch_loader/executor_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ExecutorProxy
def initialize(default_value, key, &block)
@default_value = default_value
@block = block
@block_hash_key = key || block.source_location
@block_hash_key = "#{key}#{block.source_location}"
@global_executor = BatchLoader::Executor.ensure_current
end

Expand Down

0 comments on commit ba887f3

Please sign in to comment.