Method: SimpleValidate::Errors#add
- Defined in:
- lib/simple_validate/errors.rb
#add(attribute, message) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/simple_validate/errors.rb', line 9 def add(attribute, ) if .key?(attribute) [attribute] << else [attribute] = Array() end end |