<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,12 @@
-h1. ACTS_AS-FU
+h2. Changes by Pivotal:
+
+In the original implementation, one could not truly use two different database connections: ActsAsFu would use ActiveRecord::Base's connection, or setting ActsAsFu's connection would change ActiveRecord::Base's connection globally, breaking other tests.
+
+To fix this, created ActsAsFu::Connection, an abstract class that extends from ActiveRecord::Base.  This segregates ActsAsFu's database connection (to whatever database technology) from ActiveRecord::Base, and thus from the rest of the project.
+
+&lt;hr/&gt;
+
+h1. ACTS-AS-FU
 
 Now you have no excuse for not test-driving your ActiveRecord
 extending plugins.</diff>
      <filename>README.textile</filename>
    </modified>
    <modified>
      <diff>@@ -11,10 +11,9 @@ module ActsAsFu
     self.abstract_class = true
 
     def self.connect!(config={})
-#      p &quot;ActsAsFu::Connection for #{config.inspect}&quot;
-      @log = &quot;&quot;
-#      self.logger = Logger.new(StringIO.new(log))
-#      self.connection.disconnect! rescue nil
+      @@log = &quot;&quot;
+      self.logger = Logger.new(StringIO.new(log))
+      self.connection.disconnect! rescue nil
       self.establish_connection(config)
     end
   end</diff>
      <filename>lib/acts_as_fu/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -53,7 +53,7 @@ describe ActsAsFu do
     
     describe &quot;the class&quot; do
       it &quot;is a subclass of ActiveRecord::Base&quot; do
-        Foo.superclass.should == ActiveRecord::Base
+        Foo.superclass.should == ActsAsFu::Connection
       end
       
       it &quot;has specified attributes&quot; do
@@ -121,7 +121,7 @@ describe ActsAsFu do
     end
     
     it &quot;allows connection to custom DB config&quot; do
-      ActsAsFu.connect! \
+      ActsAsFu::Connection.connect! \
         :adapter =&gt; 'sqlite3',
         :database =&gt; db
       
@@ -140,7 +140,7 @@ describe ActsAsFu do
   describe &quot;ActsAsFu.report!&quot; do
     it &quot;has a log&quot; do
       create_models
-      ActsAsFu.log.should include(&quot;CREATE TABLE&quot;)
+      ActsAsFu::Connection.log.should include(&quot;CREATE TABLE&quot;)
     end
   end
 end
\ No newline at end of file</diff>
      <filename>spec/acts_as_fu_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3248163d298cc2f89a0da2c6899f568caf1bb7ed</id>
    </parent>
  </parents>
  <author>
    <name>Joe Moore &amp; Ryan Dy</name>
    <email>pivotal@cypress.flood.pivotallabs.com</email>
  </author>
  <url>http://github.com/nakajima/acts_as_fu/commit/6f28083ce7b1978097b8d002474688655a4f9fb6</url>
  <id>6f28083ce7b1978097b8d002474688655a4f9fb6</id>
  <committed-date>2009-03-10T18:13:59-07:00</committed-date>
  <authored-date>2009-03-10T18:13:59-07:00</authored-date>
  <message>fixed specs; hooked up logging</message>
  <tree>bf1d4c37dc1c6edde464a4b9fbcc39cc31e26f37</tree>
  <committer>
    <name>Joe Moore &amp; Ryan Dy</name>
    <email>pivotal@cypress.flood.pivotallabs.com</email>
  </committer>
</commit>
