diff --git a/lib/dm-validations/validation_errors.rb b/lib/dm-validations/validation_errors.rb index 603b274f..4f5f53cc 100644 --- a/lib/dm-validations/validation_errors.rb +++ b/lib/dm-validations/validation_errors.rb @@ -99,7 +99,7 @@ def full_messages # on given field def on(field_name) errors_for_field = errors[field_name] - DataMapper::Ext.blank?(errors_for_field) ? nil : errors_for_field.uniq + DataMapper::Ext.blank?(errors_for_field) ? [] : errors_for_field.uniq end def each