From 1232e91ae034f13a2e183b1c20d7af0e9d19112f Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 30 Sep 2012 09:06:45 +0900 Subject: patched range validator --- lib/axlsx/util/validators.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/axlsx/util/validators.rb b/lib/axlsx/util/validators.rb index 417de908..9c1ec741 100644 --- a/lib/axlsx/util/validators.rb +++ b/lib/axlsx/util/validators.rb @@ -29,7 +29,7 @@ module Axlsx else min < value && value < max end - raise ArgumentError, (ERR_RANGE % [v.inspect, min.to_s, max.to_s, inclusive]) unless passes + raise ArgumentError, (ERR_RANGE % [value.inspect, min.to_s, max.to_s, inclusive]) unless passes end end # Validates the value against the regular expression provided. -- cgit v1.2.3