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