# File lib/active_record/validations.rb, line 197 def size @errors.values.inject(0) { |error_count, attribute| error_count + attribute.size } end