Method: Mongomatic::Errors#remove

Defined in:
lib/mongomatic/errors.rb

#remove(field, message) ⇒ Object



26
27
28
29
# File 'lib/mongomatic/errors.rb', line 26

def remove(field, message)
  @errors[field] ||= []
  @errors[field].delete message
end