Method: PureValidator::ValidationErrors#to_a

Defined in:
lib/pure_validator/validation_errors.rb

#to_aObject

Returns an array of error messages, with the attribute name included.

errors.add(:name, "can't be blank")
errors.add(:name, "must be specified")
errors.to_a # => ["name can't be blank", "name must be specified"]


124
125
126
# File 'lib/pure_validator/validation_errors.rb', line 124

def to_a
  full_messages
end