<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,7 @@
+* (4 Oct 2007)
+
+Update for Edge rails: remove support for legacy #count args 
+
 * (2 Feb 2007)
 
 Add support for custom primary keys [Jeff Dean]
@@ -67,4 +71,4 @@ Updated for Rails 1.1.  I love removing code.
 
 *0.1* (17 Sep 2005)
 
-* Initial gem
\ No newline at end of file
+* Initial gem</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -85,7 +85,7 @@ module Caboose #:nodoc:
           end
 
           def count_with_deleted(*args)
-            calculate_with_deleted(:count, *construct_count_options_from_legacy_args(*args))
+            calculate_with_deleted(:count, *construct_count_options_from_args(*args))
           end
 
           def count(*args)</diff>
      <filename>lib/caboose/acts/paranoid.rb</filename>
    </modified>
    <modified>
      <diff>@@ -92,7 +92,7 @@ class ParanoidTest &lt; Test::Unit::TestCase
   
   def test_should_not_count_deleted
     assert_equal 1, Widget.count
-    assert_equal 1, Widget.count(['title=?', 'widget 1'])
+    assert_equal 1, Widget.count(:all, :conditions =&gt; ['title=?', 'widget 1'])
     assert_equal 2, Widget.calculate_with_deleted(:count, :all)
   end
   
@@ -142,19 +142,19 @@ class ParanoidTest &lt; Test::Unit::TestCase
   end
 
   def test_should_not_override_scopes_when_counting
-    assert_equal 1, Widget.with_scope(:find =&gt; { :conditions =&gt; &quot;title = 'widget 1'&quot; }) { Widget.count }
-    assert_equal 0, Widget.with_scope(:find =&gt; { :conditions =&gt; &quot;title = 'deleted widget 2'&quot; }) { Widget.count }
-    assert_equal 1, Widget.with_scope(:find =&gt; { :conditions =&gt; &quot;title = 'deleted widget 2'&quot; }) { Widget.calculate_with_deleted(:count, :all) }
+    assert_equal 1, Widget.send(:with_scope, :find =&gt; { :conditions =&gt; &quot;title = 'widget 1'&quot; }) { Widget.count }
+    assert_equal 0, Widget.send(:with_scope, :find =&gt; { :conditions =&gt; &quot;title = 'deleted widget 2'&quot; }) { Widget.count }
+    assert_equal 1, Widget.send(:with_scope, :find =&gt; { :conditions =&gt; &quot;title = 'deleted widget 2'&quot; }) { Widget.calculate_with_deleted(:count, :all) }
   end
 
   def test_should_not_override_scopes_when_finding
-    assert_equal [1], Widget.with_scope(:find =&gt; { :conditions =&gt; &quot;title = 'widget 1'&quot; }) { Widget.find(:all) }.ids
-    assert_equal [],  Widget.with_scope(:find =&gt; { :conditions =&gt; &quot;title = 'deleted widget 2'&quot; }) { Widget.find(:all) }.ids
-    assert_equal [2], Widget.with_scope(:find =&gt; { :conditions =&gt; &quot;title = 'deleted widget 2'&quot; }) { Widget.find_with_deleted(:all) }.ids
+    assert_equal [1], Widget.send(:with_scope, :find =&gt; { :conditions =&gt; &quot;title = 'widget 1'&quot; }) { Widget.find(:all) }.ids
+    assert_equal [],  Widget.send(:with_scope, :find =&gt; { :conditions =&gt; &quot;title = 'deleted widget 2'&quot; }) { Widget.find(:all) }.ids
+    assert_equal [2], Widget.send(:with_scope, :find =&gt; { :conditions =&gt; &quot;title = 'deleted widget 2'&quot; }) { Widget.find_with_deleted(:all) }.ids
   end
 
   def test_should_allow_multiple_scoped_calls_when_finding
-    Widget.with_scope(:find =&gt; { :conditions =&gt; &quot;title = 'deleted widget 2'&quot; }) do
+    Widget.send(:with_scope, :find =&gt; { :conditions =&gt; &quot;title = 'deleted widget 2'&quot; }) do
       assert_equal [2], Widget.find_with_deleted(:all).ids
       assert_equal [2], Widget.find_with_deleted(:all).ids, &quot;clobbers the constrain on the unmodified find&quot;
       assert_equal [], Widget.find(:all).ids
@@ -163,7 +163,7 @@ class ParanoidTest &lt; Test::Unit::TestCase
   end
 
   def test_should_allow_multiple_scoped_calls_when_counting
-    Widget.with_scope(:find =&gt; { :conditions =&gt; &quot;title = 'deleted widget 2'&quot; }) do
+    Widget.send(:with_scope, :find =&gt; { :conditions =&gt; &quot;title = 'deleted widget 2'&quot; }) do
       assert_equal 1, Widget.calculate_with_deleted(:count, :all)
       assert_equal 1, Widget.calculate_with_deleted(:count, :all), &quot;clobbers the constrain on the unmodified find&quot;
       assert_equal 0, Widget.count</diff>
      <filename>test/paranoid_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7db4f9ede56d8fdd038c8bdb98bf284215011655</id>
    </parent>
  </parents>
  <author>
    <name>technoweenie</name>
    <email>technoweenie@567b1171-46fb-0310-a4c9-b4bef9110e78</email>
  </author>
  <url>http://github.com/ooochie/acts_as_paranoid/commit/e2fc7bd59e4494ef61a074d3d5afb772e12497d9</url>
  <id>e2fc7bd59e4494ef61a074d3d5afb772e12497d9</id>
  <committed-date>2007-10-04T10:49:07-07:00</committed-date>
  <authored-date>2007-10-04T10:49:07-07:00</authored-date>
  <message>Update for Edge rails: remove support for legacy #count args

git-svn-id: http://svn.techno-weenie.net/projects/plugins/acts_as_paranoid@2987 567b1171-46fb-0310-a4c9-b4bef9110e78</message>
  <tree>857d542b9b6b8a4cd6fb122f4262a59a636b9d3f</tree>
  <committer>
    <name>technoweenie</name>
    <email>technoweenie@567b1171-46fb-0310-a4c9-b4bef9110e78</email>
  </committer>
</commit>
