<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -84,6 +84,7 @@ module MTI::ARMethods
 
       # Reload with proper class if necessary
       found = super(*args)
+      # This code might have issues
       found = found.class.find(*args) if found.is_a?(ActiveRecord::Base) &amp;&amp; found.class.base_class == self
       found
     end
@@ -126,7 +127,7 @@ module MTI::ARMethods
     #     set_mti_primary_key &quot;person_id&quot;
     #   end
     def mti_primary_key
-      key = Inflector.foreign_key(base_class.name)
+      key = ActiveSupport::Inflector.foreign_key(base_class.name)
       set_mti_primary_key(key)
       key
     end
@@ -256,6 +257,23 @@ module MTI::ARMethods
       callback(:after_initialize) if respond_to_without_attributes?(:after_initialize)
       result
     end
+    
+    # Returns the contents of the record as a nicely formatted string.
+    def inspect
+      attributes_as_nice_string = self.class.column_names.collect { |name|
+        if has_attribute?(name) || new_record?
+          &quot;#{name}: #{attribute_for_inspect(name)}&quot;
+        end
+      }.compact.join(&quot;, &quot;)
+      
+      mti_attributes_as_nice_string = self.class.mti_column_names.collect { |name|
+        if has_attribute?(name) || new_record?
+          &quot;#{name}: #{attribute_for_inspect(name)}&quot;
+        end
+      }.compact.join(&quot;, &quot;)
+      
+      &quot;#&lt;#{self.class} #{attributes_as_nice_string}, #{mti_attributes_as_nice_string}&gt;&quot;
+    end
 
     # Initializes the attributes array with keys matching the columns from the mti subclass table 
     # and the values matching the corresponding default value of that column, so</diff>
      <filename>lib/mti/ar_methods.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a4ffde14e36d6bb53cb29e22cad143dddf6befcd</id>
    </parent>
  </parents>
  <author>
    <name>Peter Wagenet</name>
    <email>peter.wagenet@gmail.com</email>
  </author>
  <url>http://github.com/rxcfc/activerecord--mti/commit/1618ec4305d7bdd4a5986318f568f7fb9a44f088</url>
  <id>1618ec4305d7bdd4a5986318f568f7fb9a44f088</id>
  <committed-date>2008-09-30T11:58:27-07:00</committed-date>
  <authored-date>2008-09-30T11:58:27-07:00</authored-date>
  <message>Inspect Method</message>
  <tree>02a1237ce2e38d53b2e05d47f7172631b42f3ff3</tree>
  <committer>
    <name>Peter Wagenet</name>
    <email>peter.wagenet@gmail.com</email>
  </committer>
</commit>
