<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,7 +14,7 @@ module Validatable
       return nil if errors[attribute.to_sym].nil?
       errors[attribute.to_sym].size == 1 ? errors[attribute.to_sym].first : errors[attribute.to_sym]
     end
-    
+
     def add(attribute, message) #:nodoc:
       errors[attribute.to_sym] = [] if errors[attribute.to_sym].nil?
       errors[attribute.to_sym] &lt;&lt; message
@@ -44,7 +44,7 @@ module Validatable
     end
 
     def count #:nodoc:
-      size
+      errors.values.flatten.size
     end
 
     # call-seq: full_messages -&gt; an_array_of_messages</diff>
      <filename>lib/errors.rb</filename>
    </modified>
    <modified>
      <diff>@@ -47,4 +47,18 @@ Expectations do
     errors.add(:attribute, &quot;message2&quot;)
     errors.on(:attribute)
   end
+  
+  expect 2 do
+    errors = Validatable::Errors.new
+    errors.add(:attribute, &quot;message1&quot;)
+    errors.add(:attribute, &quot;message2&quot;)
+    errors.count
+  end 
+  
+  expect 2 do
+    errors = Validatable::Errors.new
+    errors.add(:attribute1, &quot;message1&quot;)
+    errors.add(:attribute2, &quot;message2&quot;)
+    errors.count
+  end   
 end
\ No newline at end of file</diff>
      <filename>test/unit/errors_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>107a3ef29f4f9c75c7143f71e285efbbbe293ed6</id>
    </parent>
  </parents>
  <author>
    <name>jaycfields</name>
    <email>jaycfields</email>
  </author>
  <url>http://github.com/ssoroka/validatable/commit/87d73df67cee4d5f2e3b612f46a2d0aa77b53bef</url>
  <id>87d73df67cee4d5f2e3b612f46a2d0aa77b53bef</id>
  <committed-date>2008-03-20T13:35:21-07:00</committed-date>
  <authored-date>2008-03-20T13:35:21-07:00</authored-date>
  <message>adding count fix from Chris Didyk and Yi Wen</message>
  <tree>dd90bd1f0b1dddabe18c6f6257a2578be4c57dad</tree>
  <committer>
    <name>jaycfields</name>
    <email>jaycfields</email>
  </committer>
</commit>
