<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -89,7 +89,7 @@ module Ddb #:nodoc:
             before_create   :set_creator_attribute
                                  
             if defined?(Caboose::Acts::Paranoid)
-              belongs_to :deleter, :class_name =&gt; self.stamper_class_name,
+              belongs_to :deleter, :class_name =&gt; self.stamper_class_name.to_s.singularize.camelize,
                                    :foreign_key =&gt; self.deleter_attribute
               before_destroy  :set_deleter_attribute
             end
@@ -118,27 +118,27 @@ module Ddb #:nodoc:
       module InstanceMethods #:nodoc:
         private
           def has_stamper?
-            !self.class.stamper_class.nil? &amp;&amp; !self.class.stamper_class.stamper.nil?
+            !self.class.stamper_class.nil? &amp;&amp; !self.class.stamper_class.stamper.nil? rescue false
           end
 
           def set_creator_attribute
             return unless self.record_userstamp
             if respond_to?(self.creator_attribute.to_sym) &amp;&amp; has_stamper?
-              self.creator = self.class.stamper_class.stamper
+              self.send(&quot;#{self.creator_attribute}=&quot;.to_sym, self.class.stamper_class.stamper)
             end
           end
 
           def set_updater_attribute
             return unless self.record_userstamp
             if respond_to?(self.updater_attribute.to_sym) &amp;&amp; has_stamper?
-              self.updater = self.class.stamper_class.stamper
+              self.send(&quot;#{self.updater_attribute}=&quot;.to_sym, self.class.stamper_class.stamper)
             end
           end
 
           def set_deleter_attribute
             return unless self.record_userstamp
             if respond_to?(self.deleter_attribute.to_sym) &amp;&amp; has_stamper?
-              self.deleter = self.class.stamper_class.stamper
+              self.send(&quot;#{self.deleter_attribute}=&quot;.to_sym, self.class.stamper_class.stamper)
               save
             end
           end</diff>
      <filename>lib/stampable.rb</filename>
    </modified>
    <modified>
      <diff>@@ -28,7 +28,7 @@ module Ddb #:nodoc:
 
         # Retrieves the existing stamper for the current request.
         def stamper
-          find(Thread.current[&quot;#{self.to_s.downcase}_#{self.object_id}_stamper&quot;])
+          Thread.current[&quot;#{self.to_s.downcase}_#{self.object_id}_stamper&quot;]
         end
 
         # Sets the stamper back to +nil+ to prepare for the next request.</diff>
      <filename>lib/stamper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,7 +15,7 @@ class CompatibilityStampingTests&lt; Test::Unit::TestCase  # :nodoc:
   end
 
   def test_comment_creation_with_stamped_object
-    assert_equal @delynn, Person.stamper
+    assert_equal @delynn.id, Person.stamper
 
     comment = Comment.create(:comment =&gt; &quot;Test Comment&quot;)
     assert_equal @delynn.id, comment.created_by
@@ -26,7 +26,7 @@ class CompatibilityStampingTests&lt; Test::Unit::TestCase  # :nodoc:
 
   def test_comment_creation_with_stamped_integer
     Person.stamper = 2
-    assert_equal 2, Person.stamper.id
+    assert_equal 2, Person.stamper
 
     comment = Comment.create(:comment =&gt; &quot;Test Comment - 2&quot;)
     assert_equal @nicole.id, comment.created_by
@@ -37,7 +37,7 @@ class CompatibilityStampingTests&lt; Test::Unit::TestCase  # :nodoc:
   
   def test_comment_updating_with_stamped_object
     Person.stamper = @nicole
-    assert_equal @nicole, Person.stamper
+    assert_equal @nicole.id, Person.stamper
 
     @first_comment.comment &lt;&lt; &quot; - Updated&quot;
     @first_comment.save
@@ -50,7 +50,7 @@ class CompatibilityStampingTests&lt; Test::Unit::TestCase  # :nodoc:
 
   def test_comment_updating_with_stamped_integer
     Person.stamper = 2
-    assert_equal 2, Person.stamper.id
+    assert_equal 2, Person.stamper
 
     @first_comment.comment &lt;&lt; &quot; - Updated&quot;
     @first_comment.save</diff>
      <filename>test/compatibility_stamping_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 class UserstampController &lt; ActionController::Base
-  include Userstamp
+  include Ddb::Controller::Userstamp
 
   protected
     def current_user</diff>
      <filename>test/controllers/userstamp_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,7 +15,7 @@ class StampingTests &lt; Test::Unit::TestCase  # :nodoc:
   end
 
   def test_person_creation_with_stamped_object
-    assert_equal @zeus, User.stamper
+    assert_equal @zeus.id, User.stamper
     
     person = Person.create(:name =&gt; &quot;David&quot;)
     assert_equal @zeus.id, person.creator_id
@@ -26,7 +26,7 @@ class StampingTests &lt; Test::Unit::TestCase  # :nodoc:
 
   def test_person_creation_with_stamped_integer
     User.stamper = 2
-    assert_equal 2, User.stamper.id
+    assert_equal 2, User.stamper
 
     person = Person.create(:name =&gt; &quot;Daniel&quot;)
     assert_equal @hera.id, person.creator_id
@@ -36,7 +36,7 @@ class StampingTests &lt; Test::Unit::TestCase  # :nodoc:
   end
 
   def test_post_creation_with_stamped_object
-    assert_equal @delynn, Person.stamper
+    assert_equal @delynn.id, Person.stamper
 
     post = Post.create(:title =&gt; &quot;Test Post - 1&quot;)
     assert_equal @delynn.id, post.creator_id
@@ -47,7 +47,7 @@ class StampingTests &lt; Test::Unit::TestCase  # :nodoc:
 
   def test_post_creation_with_stamped_integer
     Person.stamper = 2
-    assert_equal 2, Person.stamper.id
+    assert_equal 2, Person.stamper
 
     post = Post.create(:title =&gt; &quot;Test Post - 2&quot;)
     assert_equal @nicole.id, post.creator_id
@@ -58,7 +58,7 @@ class StampingTests &lt; Test::Unit::TestCase  # :nodoc:
 
   def test_person_updating_with_stamped_object
     User.stamper = @hera
-    assert_equal @hera, User.stamper
+    assert_equal @hera.id, User.stamper
 
     @delynn.name &lt;&lt; &quot; Berry&quot;
     @delynn.save
@@ -71,7 +71,7 @@ class StampingTests &lt; Test::Unit::TestCase  # :nodoc:
 
   def test_person_updating_with_stamped_integer
     User.stamper = 2
-    assert_equal 2, User.stamper.id
+    assert_equal 2, User.stamper
 
     @delynn.name &lt;&lt; &quot; Berry&quot;
     @delynn.save
@@ -84,7 +84,7 @@ class StampingTests &lt; Test::Unit::TestCase  # :nodoc:
 
   def test_post_updating_with_stamped_object
     Person.stamper = @nicole
-    assert_equal @nicole, Person.stamper
+    assert_equal @nicole.id, Person.stamper
 
     @first_post.title &lt;&lt; &quot; - Updated&quot;
     @first_post.save
@@ -97,7 +97,7 @@ class StampingTests &lt; Test::Unit::TestCase  # :nodoc:
 
   def test_post_updating_with_stamped_integer
     Person.stamper = 2
-    assert_equal 2, Person.stamper.id
+    assert_equal 2, Person.stamper
 
     @first_post.title &lt;&lt; &quot; - Updated&quot;
     @first_post.save</diff>
      <filename>test/stamping_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6218f5b63098902d4950eb2d1848ef44c174c918</id>
    </parent>
  </parents>
  <author>
    <name>DeLynn Berry</name>
    <email>delynn@gmail.com</email>
  </author>
  <url>http://github.com/delynn/userstamp/commit/210dad9ad56f80fd2eee4959578687755c4afdd2</url>
  <id>210dad9ad56f80fd2eee4959578687755c4afdd2</id>
  <committed-date>2008-04-16T20:04:09-07:00</committed-date>
  <authored-date>2008-04-16T20:04:09-07:00</authored-date>
  <message>Decided to not use AR#find in the stamper method as it could cause strange behavior. Thanks to Aaron Eisenberger for pointing this out.</message>
  <tree>8ac76e51641af1581061303989926533efb44507</tree>
  <committer>
    <name>DeLynn Berry</name>
    <email>delynn@gmail.com</email>
  </committer>
</commit>
