<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -20,13 +20,13 @@ Download PassiveRecord from Github: http://github.com/artofmission/passive_recor
 
 == Example
 
-  class Name &lt; PassiveRecord
-    define_attributes [:first_name, :middle_name, :last_name]
+  class Name &lt; PassiveRecord::Base
+    define_fields [:first_name, :middle_name, :last_name]
   end
 
 ...will create a new Name model with id, address, and location attributes. 
 
-  class Person &lt; PassiveRecord
+  class Person &lt; PassiveRecord::Base
     has_many :names
   end
   
@@ -39,8 +39,8 @@ This would a Person object that has many names. You can now access the names has
   
 You can serialize a PassiveRecord object into another database object for storage: 
   
-  class Address &lt; PassiveRecord
-    define_attributes [:street, :city, :state, :postal_code, :country]
+  class Address &lt; PassiveRecord::Base
+    define_fields [:street, :city, :state, :postal_code, :country]
   end
   
   class Company &lt; ActiveRecord</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 # Include hook code here
 require 'passive_record'
 
-# require 'define_attributes'
+# require 'define_fields'
 # PassiveRecord.class_eval { include DefineAttributes }</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,64 +1,67 @@
-class PassiveRecord
+module PassiveRecord
+  class Base
   
-  # Assign values to each of the attributes passed in the params hash
-  def initialize(params = {})
-    params.each { |k, v| send(&quot;#{k}=&quot;, v)}
-  end
+    # Assign values to each of the attributes passed in the params hash
+    def initialize(params = {})
+      params.each { |k, v| send(&quot;#{k}=&quot;, v)}
+    end
   
-  # Date accessors to be consistent with ActiveRecord: 
-  attr_accessor :created_at, :updated_at
+    # Date accessors to be consistent with ActiveRecord: 
+    attr_accessor :created_at, :updated_at
   
-  # Return a hash of the class's attribute names and values
-  #   @name.attributes =&gt; {:first_name=&gt;&quot;Dima&quot;, :last_name=&gt;&quot;Dozen&quot;}
-  def attributes
-    @attributes = {}
-    self.class.attributes.flatten.each {|att| @attributes[att] = self.send(att) }
-    @attributes
-  end
+    # Return a hash of the class's attribute names and values
+    #   @name.attributes =&gt; {:first_name=&gt;&quot;Dima&quot;, :last_name=&gt;&quot;Dozen&quot;}
+    def attributes
+      @attributes = {}
+      self.class.fields.flatten.each {|att| @attributes[att] = self.send(att) }
+      @attributes
+    end
+    class_inheritable_accessor :fields
   
-  # Compare this object with another object of the same class. 
-  # Returns true if the attributes and values are identical. 
-  #   @name === @name   #=&gt; true
-  #   @name === @name2  #=&gt; false
-  def ===(other)
-    self.attributes == other.attributes
-  end
+    # Compare this object with another object of the same class. 
+    # Returns true if the attributes and values are identical. 
+    #   @name === @name   #=&gt; true
+    #   @name === @name2  #=&gt; false
+    def ===(other)
+      self.attributes == other.attributes
+    end
   
   
-  class &lt;&lt; self
-    # Provide some basic ActiveRecord-like methods for working with non-ActiveRecord objects
-    #   class Person &lt; PassiveRecord
-    #     has_many :names, :addresses, :phone_numbers
-    #   end
-    def has_many(*associations)
-      # Simply sets up an attr_accessor for each item in the list
-      @associations = associations
-      associations.each {|association| attr_accessor association}
-    end
+    class &lt;&lt; self
+      # Provide some basic ActiveRecord-like methods for working with non-ActiveRecord objects
+      #   class Person &lt; PassiveRecord::Base
+      #     has_many :names, :addresses, :phone_numbers
+      #   end
+      def has_many(*associations)
+        # Simply sets up an attr_accessor for each item in the list
+        @associations = associations
+        associations.each {|association| attr_accessor association}
+      end
     
-    # Creates instance methods for each item in the list. Expects an array
-    #   class Address &lt; PassiveRecord
-    #     define_attributes [:street, :city, :state, :postal_code, :country]
-    #   end
-    def define_attributes(attrs)
-      @attributes = attrs
-      # Assign attr_accessor for each attribute in the list
-      attrs.each {|att| attr_accessor att}
-    end
+      # Creates instance methods for each item in the list. Expects an array
+      #   class Address &lt; PassiveRecord::Base
+      #     define_fields [:street, :city, :state, :postal_code, :country]
+      #   end
+      def define_fields(attrs)
+        self.fields = attrs
+        # Assign attr_accessor for each attribute in the list
+        attrs.each {|att| attr_accessor att}
+      end
     
-    # Return the list of available attributes for the class
-    # 
-    #   Name.attributes #=&gt; [:id, :first_name, :last_name]
-    def attributes
-      @attributes
-    end
+      # Return the list of available fields for the class
+      # 
+      #   Name.fields #=&gt; [:id, :first_name, :last_name]
+      # def fields
+      #   @fields
+      # end
     
-    # Returns the list of available has_many associations
-    # 
-    #   Model.associations #=&gt; [:names, :addresses]
-    def associations
-      @associations
+      # Returns the list of available has_many associations
+      # 
+      #   Model.associations #=&gt; [:names, :addresses]
+      def associations
+        @associations
+      end
     end
-  end
   
+  end
 end
\ No newline at end of file</diff>
      <filename>lib/passive_record.rb</filename>
    </modified>
    <modified>
      <diff>@@ -90,7 +90,7 @@
       &lt;a href=&quot;#M000007&quot;&gt;associations&lt;/a&gt;&amp;nbsp;&amp;nbsp;
       &lt;a href=&quot;#M000002&quot;&gt;attributes&lt;/a&gt;&amp;nbsp;&amp;nbsp;
       &lt;a href=&quot;#M000006&quot;&gt;attributes&lt;/a&gt;&amp;nbsp;&amp;nbsp;
-      &lt;a href=&quot;#M000005&quot;&gt;define_attributes&lt;/a&gt;&amp;nbsp;&amp;nbsp;
+      &lt;a href=&quot;#M000005&quot;&gt;define_fields&lt;/a&gt;&amp;nbsp;&amp;nbsp;
       &lt;a href=&quot;#M000004&quot;&gt;has_many&lt;/a&gt;&amp;nbsp;&amp;nbsp;
       &lt;a href=&quot;#M000001&quot;&gt;new&lt;/a&gt;&amp;nbsp;&amp;nbsp;
       &lt;/div&gt;
@@ -204,7 +204,7 @@ href=&quot;PassiveRecord.html#M000002&quot;&gt;attributes&lt;/a&gt; for the class
 
         &lt;div class=&quot;method-heading&quot;&gt;
           &lt;a href=&quot;#M000005&quot; class=&quot;method-signature&quot;&gt;
-          &lt;span class=&quot;method-name&quot;&gt;define_attributes&lt;/span&gt;&lt;span class=&quot;method-args&quot;&gt;(attrs)&lt;/span&gt;
+          &lt;span class=&quot;method-name&quot;&gt;define_fields&lt;/span&gt;&lt;span class=&quot;method-args&quot;&gt;(attrs)&lt;/span&gt;
           &lt;/a&gt;
         &lt;/div&gt;
       
@@ -214,7 +214,7 @@ Creates instance methods for each item in the list. Expects an array
 &lt;/p&gt;
 &lt;pre&gt;
   class Address &amp;lt; PassiveRecord
-    define_attributes [:street, :city, :state, :postal_code, :country]
+    define_fields [:street, :city, :state, :postal_code, :country]
   end
 &lt;/pre&gt;
           &lt;p&gt;&lt;a class=&quot;source-toggle&quot; href=&quot;#&quot;
@@ -222,7 +222,7 @@ Creates instance methods for each item in the list. Expects an array
           &lt;div class=&quot;method-source-code&quot; id=&quot;M000005-source&quot;&gt;
 &lt;pre&gt;
     &lt;span class=&quot;ruby-comment cmt&quot;&gt;# File lib/passive_record.rb, line 43&lt;/span&gt;
-43:     &lt;span class=&quot;ruby-keyword kw&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;define_attributes&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;attrs&lt;/span&gt;)
+43:     &lt;span class=&quot;ruby-keyword kw&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;define_fields&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;attrs&lt;/span&gt;)
 44:       &lt;span class=&quot;ruby-ivar&quot;&gt;@attributes&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;attrs&lt;/span&gt;
 45:       &lt;span class=&quot;ruby-comment cmt&quot;&gt;# Assign attr_accessor for each attribute in the list&lt;/span&gt;
 46:       &lt;span class=&quot;ruby-identifier&quot;&gt;attrs&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;each&lt;/span&gt; {&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;att&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;attr_accessor&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;att&lt;/span&gt;}</diff>
      <filename>rdoc/classes/PassiveRecord.html</filename>
    </modified>
    <modified>
      <diff>@@ -99,7 +99,7 @@ href=&quot;http://github.com/artofmission/passive_record&quot;&gt;github.com/artofmission/pas
 &lt;h2&gt;Example&lt;/h2&gt;
 &lt;pre&gt;
   class Name &amp;lt; PassiveRecord
-    define_attributes [:first_name, :middle_name, :last_name]
+    define_fields [:first_name, :middle_name, :last_name]
   end
 &lt;/pre&gt;
 &lt;p&gt;
@@ -127,7 +127,7 @@ database object for storage:
 &lt;/p&gt;
 &lt;pre&gt;
   class Address &amp;lt; PassiveRecord
-    define_attributes [:street, :city, :state, :postal_code, :country]
+    define_fields [:street, :city, :state, :postal_code, :country]
   end
 
   class Company &amp;lt; ActiveRecord</diff>
      <filename>rdoc/files/README_rdoc.html</filename>
    </modified>
    <modified>
      <diff>@@ -24,7 +24,7 @@
     &lt;a href=&quot;classes/PassiveRecord.html#M000007&quot;&gt;associations (PassiveRecord)&lt;/a&gt;&lt;br /&gt;
     &lt;a href=&quot;classes/PassiveRecord.html#M000002&quot;&gt;attributes (PassiveRecord)&lt;/a&gt;&lt;br /&gt;
     &lt;a href=&quot;classes/PassiveRecord.html#M000006&quot;&gt;attributes (PassiveRecord)&lt;/a&gt;&lt;br /&gt;
-    &lt;a href=&quot;classes/PassiveRecord.html#M000005&quot;&gt;define_attributes (PassiveRecord)&lt;/a&gt;&lt;br /&gt;
+    &lt;a href=&quot;classes/PassiveRecord.html#M000005&quot;&gt;define_fields (PassiveRecord)&lt;/a&gt;&lt;br /&gt;
     &lt;a href=&quot;classes/PassiveRecord.html#M000004&quot;&gt;has_many (PassiveRecord)&lt;/a&gt;&lt;br /&gt;
     &lt;a href=&quot;classes/PassiveRecord.html#M000001&quot;&gt;new (PassiveRecord)&lt;/a&gt;&lt;br /&gt;
   &lt;/div&gt;</diff>
      <filename>rdoc/fr_method_index.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>98c8bc1da3ecd8a32b94eb98be44fa46c0e0858f</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Heneise</name>
    <email>ryan@artofmission.com</email>
  </author>
  <url>http://github.com/artofmission/passive_record/commit/9cfc9d324c2f888aa762fcbb8246a00f2954bc2c</url>
  <id>9cfc9d324c2f888aa762fcbb8246a00f2954bc2c</id>
  <committed-date>2009-05-26T12:25:02-07:00</committed-date>
  <authored-date>2009-05-26T12:25:02-07:00</authored-date>
  <message>Enabled subclass inheritance for PassiveRecord models. Now you can do things like FellowshipOne::Address &lt; Address, and all the fields and attributes will be inherited.</message>
  <tree>56dedee3b994055a894c9943dccf55b414a241e3</tree>
  <committer>
    <name>Ryan Heneise</name>
    <email>ryan@artofmission.com</email>
  </committer>
</commit>
