<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,7 @@
 module PermanentRecords
   def self.included(base)
     if base.respond_to?(:named_scope)
-      base.named_scope :deleted, :conditions =&gt; {:deleted_at =&gt; true}
+      base.named_scope :deleted, :conditions =&gt; :deleted_at
       base.named_scope :not_deleted, :conditions =&gt; { :deleted_at =&gt; nil }
     else
       base.extend LegacyScopes</diff>
      <filename>lib/permanent_records.rb</filename>
    </modified>
    <modified>
      <diff>@@ -78,6 +78,16 @@ class PermanentRecordsTest &lt; ActiveSupport::TestCase
     assert !@deleted.destroy.revive.revive.destroy.destroy.revive.deleted?
   end
   
+  def test_with_counting_on_deleted_limits_scope_to_count_deleted_records
+    assert_equal Muskrat.deleted.length,
+                 Muskrat.deleted.count
+  end
+  
+  def test_with_counting_on_not_deleted_limits_scope_to_count_not_deleted_records
+    assert_equal Muskrat.not_deleted.length,
+                 Muskrat.not_deleted.count
+  end
+  
   def test_with_deleted_limits_scope_to_deleted_records
     assert Muskrat.deleted.all?(&amp;:deleted?)
   end</diff>
      <filename>test/permanent_records_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a384cd418b8b3c81eeda4d34d448a05e7f7fa459</id>
    </parent>
  </parents>
  <author>
    <name>Jack Danger Canty</name>
    <email>gitcommit@6brand.com</email>
  </author>
  <url>http://github.com/JackDanger/permanent_records/commit/30cb4680b544ec1909ac2c0b9699e6d29a12ed9b</url>
  <id>30cb4680b544ec1909ac2c0b9699e6d29a12ed9b</id>
  <committed-date>2009-09-27T00:02:11-07:00</committed-date>
  <authored-date>2009-09-27T00:02:11-07:00</authored-date>
  <message>made sure not to try to count datetime as integer</message>
  <tree>330c3c4e79b87679293e2196c6da15e1aba4777a</tree>
  <committer>
    <name>Jack Danger Canty</name>
    <email>gitcommit@6brand.com</email>
  </committer>
</commit>
