# File lib/active_record/validations.rb, line 254 def each_error @errors.each_key { |attr| @errors[attr].each { |error| yield attr, error } } end