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