Method: VirtualBox::AbstractModel::Validatable#errors_on

Defined in:
lib/virtualbox/abstract_model/validatable.rb

#errors_on(field) ⇒ Object

Returns the errors on a specific field. This returns nil if there are no errors, otherwise it returns an array of error messages.



17
18
19
# File 'lib/virtualbox/abstract_model/validatable.rb', line 17

def errors_on(field)
  @errors[field.to_sym]
end