Flowdock
method

delete

Importance_1
v4.0.2 - Show latest stable - 0 notes - Class: ActiveModel::Errors
delete(key) public

Delete messages for key. Returns the deleted messages.

person.errors.get(:name)    # => ["can not be nil"]
person.errors.delete(:name) # => ["can not be nil"]
person.errors.get(:name)    # => nil
Show source
Register or log in to add new notes.