lib/bulk_loader/loader.rb in bulk_loader-1.3.0 vs lib/bulk_loader/loader.rb in bulk_loader-1.3.1
- old
+ new
@@ -28,10 +28,10 @@
private
def call_block(mapping_of, *args)
if args.size < @block.arity - 1
- message = "block should take #{@block.arity} parameters, but given #{arity.size + 1}"
+ message = "load should take #{@block.arity} parameters, but given #{args.size + 1}"
raise ArgumentError, message
end
result_of = @block.call(mapping_of.keys, *args)
raise 'block shuold return Hash' unless result_of.is_a?(Hash)