If you define a unique but leave the value empty and then try to run validation, you get an exception because the validator is expecting an array. One solution is to return when a nil value is found. Not sure if this achieves everything the method should handle, though.
If you define a unique but leave the value empty and then try to run validation, you get an exception because the validator is expecting an array. One solution is to return when a nil value is found. Not sure if this achieves everything the method should handle, though.