lib/ultra_config/validator.rb in ultra_config-0.6.0 vs lib/ultra_config/validator.rb in ultra_config-0.6.1

- old
+ new

@@ -9,9 +9,11 @@ def self.validate(old, new, &validation) @old_value = old @test_value = new + return if @test_value.nil? + self.instance_eval(&validation) if validation type_safety(Settings.type_safety) unless @explicit_type_safety ensure @test_value = nil \ No newline at end of file