<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,5 @@
+== 0.4.2 2008-06-24
+  * Fix: has_one only saves for a create, not update.  added in save for update.
 == 0.4.1 2008-06-23
   * Fix: removed extra save call for polymorphic associations.  rails handles the save on a has_one relationship
 == 0.4.0 2008-06-23</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -82,7 +82,13 @@ module Stonean
             eval(&quot;self.#{model_sym}.#{polymorphic_name}_id = self.id&quot;)
           end
 
-          unless polymorphic_name
+          if polymorphic_name
+            eval &lt;&lt;-SAVEIT
+              unless self.#{model_sym}.new_record?
+                self.#{model_sym}.save
+              end
+            SAVEIT
+          else
             eval(&quot;self.#{model_sym}.save&quot;)
           end
         end</diff>
      <filename>lib/classy-inheritance.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ module ClassyInheritance #:nodoc:
   module VERSION #:nodoc:
     MAJOR = 0
     MINOR = 4
-    TINY  = 1
+    TINY  = 2
 
     STRING = [MAJOR, MINOR, TINY].join('.')
   end</diff>
      <filename>lib/classy-inheritance/version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -33,7 +33,7 @@
     &lt;h1&gt;Classy Inheritance&lt;/h1&gt;
     &lt;div id=&quot;version&quot; class=&quot;clickable&quot; onclick='document.location = &quot;http://rubyforge.org/projects/classyinherit&quot;; return false'&gt;
       &lt;p&gt;Get Version&lt;/p&gt;
-      &lt;a href=&quot;http://rubyforge.org/projects/classyinherit&quot; class=&quot;numbers&quot;&gt;0.4.1&lt;/a&gt;
+      &lt;a href=&quot;http://rubyforge.org/projects/classyinherit&quot; class=&quot;numbers&quot;&gt;0.4.2&lt;/a&gt;
     &lt;/div&gt;
     &lt;p&gt;&lt;i&gt;&amp;#8220;You stay classy, inheritance&amp;#8221; &amp;#8211; Gibson&lt;/i&gt;&lt;/p&gt;
 
@@ -44,93 +44,19 @@
 	&lt;p&gt;Maintaining this page, the wiki at GitHub, the Google Group and no issue tracker is not an ideal setup.  So, everything is moving to &lt;a href=&quot;http://stonean.com&quot;&gt;stonean.com&lt;/a&gt; where I&amp;#8217;m giving &lt;a href=&quot;http://redmine.org&quot;&gt;Redmine&lt;/a&gt; a shot a running everything for me. I&amp;#8217;ll be posting release announcements to the news feed for each project and keeping the docs up-to-date.  Hopefully this will be better for everyone.&lt;/p&gt;
 
 
-	&lt;p&gt;Thanks for your interest in Classy Inheritance,&lt;br/&gt;
--andy&lt;/p&gt;
-
-
-	&lt;h2&gt;What&lt;/h2&gt;
-
-
-	&lt;p&gt;For now, Classy Inheritance adds a depends_on class method to your ActiveRecord model so that you can define requisite objects. 
-More functionality coming for optional relationships.&lt;/p&gt;
-
-
-You can define the relationship to be polymorphic:
-&lt;pre&gt;
-class Picture &amp;lt; ActiveRecord::Base
-  depends_on :image, :attrs =&amp;gt; [:filename, :height, :width], :as =&amp;gt; &quot;imageable&quot; 
-end
-&lt;/pre&gt;
-
-	&lt;p&gt;This will look for &amp;#8220;imageable_type&amp;#8221; and &amp;#8220;imageable_id&amp;#8221; on the images table add set them accordingly.&lt;/p&gt;
-
-
-Or you can define a standard belongs_to relationship:
-&lt;pre&gt;
-class User &amp;lt; ActiveRecord::Base
-  depends_on :profile, :attrs =&amp;gt; [:first_name, :last_name, :email]
-end
-&lt;/pre&gt;
-
-	&lt;h3&gt;What does it do for me?&lt;/h3&gt;
-
-
-	&lt;p&gt;Well, for starters you get pass-through methods added to your model.  So, in the above User example you would get the following:&lt;/p&gt;
-
-
-&lt;pre&gt;
-  @user.first_name
-  @user.last_name
-  @user.email
-  @user.first_name=
-  @user.last_name=
-  @user.email=
-&lt;/pre&gt;
-
-	&lt;p&gt;This means you can use these attributes on your form and in your controller instead of having to worry about creating/updating a separate Profile model.&lt;/p&gt;
-
-
-	&lt;p&gt;For the above example, you&amp;#8217;ll also get a &amp;#8220;find_with_profile&amp;#8221; class method that will do the :include =&amp;gt; :profile addition to your find call for you.&lt;/p&gt;
+	&lt;h2&gt;Quick links&lt;/h2&gt;
 
 
-	&lt;h2&gt;Installing&lt;/h2&gt;
+	&lt;p&gt;&lt;a href=&quot;http://stonean.com/wiki/classy-inheritance&quot;&gt;Wiki&lt;/a&gt;&lt;/p&gt;
 
 
-&lt;pre&gt;
-$ sudo gem install classy-inheritance
+	&lt;p&gt;&lt;a href=&quot;http://stonean.com/projects/classy-inheritance/boards&quot;&gt;Forum&lt;/a&gt;&lt;/p&gt;
 
-# in environment.rb add:
-require &quot;classy-inheritance&quot; 
 
-&lt;/pre&gt;
-
-	&lt;h2&gt;Github&lt;/h2&gt;
-
-
-	&lt;p&gt;The Clone &lt;span class=&quot;caps&quot;&gt;URL&lt;/span&gt;: git://github.com/stonean/classy-inheritance.git&lt;/p&gt;
-
-
-	&lt;p&gt;Read the &lt;a href=&quot;http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/&quot;&gt;8 steps for fixing other people&amp;#8217;s code&lt;/a&gt;.&lt;/p&gt;
-
-
-	&lt;p&gt;I&amp;#8217;m new to git and this whole opensource project admin gig, so please be patient with my stumbling around.&lt;/p&gt;
-
-
-	&lt;h2&gt;Contact&lt;/h2&gt;
-
-
-	&lt;p&gt;Please use the &lt;a href=&quot;http://stonean.com/projects/classy-inheritance/boards&quot;&gt;forum&lt;/a&gt; to ask questions and the &lt;a href=&quot;http://stonean.com/projects/classy-inheritance/issues&quot;&gt;issue tracker&lt;/a&gt; to report problems or submit a pull request.&lt;/p&gt;
-
-
-	&lt;h2&gt;License&lt;/h2&gt;
-
-
-	&lt;p&gt;This code is free to use under the terms of the &lt;span class=&quot;caps&quot;&gt;MIT&lt;/span&gt; license.&lt;/p&gt;
-
-
-	&lt;p&gt;Copyright&amp;#169; 2008 Andrew Stone&lt;/p&gt;
+	&lt;p&gt;Thanks for your interest in Classy Inheritance,&lt;br/&gt;
+-andy&lt;/p&gt;
     &lt;p class=&quot;coda&quot;&gt;
-      &lt;a href=&quot;http://blog.stonean.com&quot;&gt;Andrew Stone&lt;/a&gt;, 11th June 2008&lt;br&gt;
+      &lt;a href=&quot;http://blog.stonean.com&quot;&gt;Andrew Stone&lt;/a&gt;, 24th June 2008&lt;br&gt;
       Theme extended from &lt;a href=&quot;http://rb2js.rubyforge.org/&quot;&gt;Paul Battley&lt;/a&gt;
     &lt;/p&gt;
 &lt;/div&gt;</diff>
      <filename>website/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -6,72 +6,11 @@ h2. Consolidation of information
 
 Maintaining this page, the wiki at GitHub, the Google Group and no issue tracker is not an ideal setup.  So, everything is moving to &quot;stonean.com&quot;:http://stonean.com where I'm giving &quot;Redmine&quot;:http://redmine.org a shot a running everything for me. I'll be posting release announcements to the news feed for each project and keeping the docs up-to-date.  Hopefully this will be better for everyone.
 
-Thanks for your interest in Classy Inheritance,&lt;br/&gt;
--andy
-
-
-h2. What
-
-For now, Classy Inheritance adds a depends_on class method to your ActiveRecord model so that you can define requisite objects. 
-More functionality coming for optional relationships.
-
-You can define the relationship to be polymorphic:
-&lt;pre&gt;
-class Picture &lt; ActiveRecord::Base
-  depends_on :image, :attrs =&gt; [:filename, :height, :width], :as =&gt; &quot;imageable&quot;
-end
-&lt;/pre&gt;
-
-This will look for &quot;imageable_type&quot; and &quot;imageable_id&quot; on the images table add set them accordingly.
-
-Or you can define a standard belongs_to relationship:
-&lt;pre&gt;
-class User &lt; ActiveRecord::Base
-  depends_on :profile, :attrs =&gt; [:first_name, :last_name, :email]
-end
-&lt;/pre&gt;
-
-h3. What does it do for me?
-
-Well, for starters you get pass-through methods added to your model.  So, in the above User example you would get the following:
-
-&lt;pre&gt;
-  @user.first_name
-  @user.last_name
-  @user.email
-  @user.first_name=
-  @user.last_name=
-  @user.email=
-&lt;/pre&gt;
-
-This means you can use these attributes on your form and in your controller instead of having to worry about creating/updating a separate Profile model.  
-
-For the above example, you'll also get a &quot;find_with_profile&quot; class method that will do the :include =&gt; :profile addition to your find call for you.
+h2. Quick links
 
-h2. Installing
+&quot;Wiki&quot;:http://stonean.com/wiki/classy-inheritance
 
-&lt;pre&gt;
-$ sudo gem install classy-inheritance
+&quot;Forum&quot;:http://stonean.com/projects/classy-inheritance/boards
 
-# in environment.rb add:
-require &quot;classy-inheritance&quot;
-
-&lt;/pre&gt;
-
-h2. Github
-
-The Clone URL: git://github.com/stonean/classy-inheritance.git
-
-Read the &quot;8 steps for fixing other people's code&quot;:http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/.
-
-I'm new to git and this whole opensource project admin gig, so please be patient with my stumbling around.
-
-h2. Contact
-
-Please use the &quot;forum&quot;:http://stonean.com/projects/classy-inheritance/boards to ask questions and the &quot;issue tracker&quot;:http://stonean.com/projects/classy-inheritance/issues to report problems or submit a pull request.
-
-h2. License
-
-This code is free to use under the terms of the MIT license.
-
-Copyright (c) 2008 Andrew Stone
+Thanks for your interest in Classy Inheritance,&lt;br/&gt;
+-andy</diff>
      <filename>website/index.txt</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d02cf473ddc9bd76876fcc2acf1aeba5e153915e</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Stone</name>
    <email>andy@stonean.com</email>
  </author>
  <url>http://github.com/stonean/classy-inheritance/commit/df8781160ff168144d380c9aefcb3a721a3dc298</url>
  <id>df8781160ff168144d380c9aefcb3a721a3dc298</id>
  <committed-date>2008-06-24T06:40:52-07:00</committed-date>
  <authored-date>2008-06-24T06:40:52-07:00</authored-date>
  <message>release 0.4.2: fix to polymorphic associations.  0.4.1 broke the update functionality</message>
  <tree>7b11b4f3b98ca2da05576148ddd58c04f97e1f5c</tree>
  <committer>
    <name>Andrew Stone</name>
    <email>andy@stonean.com</email>
  </committer>
</commit>
