Tilen Majerle 0d77529c90 Added "optional" rule validation
With 'optional' rule validation, values does not need to be included in data array.
However, if they are, they must pass validation.

Before this patch, if you pass data with empty ( '' ) value, then it is ignored if "required" was not added.
With this version, this is now fixed.

Text case available here: http://pastebin.com/N2eQjJys
2015-11-30 22:23:21 +01:00
..
2015-11-30 22:23:21 +01:00