<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -62,7 +62,10 @@ module AutoAdminConfiguration
   #   end
   def self.primary_objects= new_value; @@primary_objects = new_value; end
 
-  def self.admin_model; @@admin_model ||= nil; end
+  def self.admin_model
+    @@admin_model ||= nil
+    @@admin_model ? model(@@admin_model) : nil
+  end
 
   # Set the application model used to authenticate the users. Use it as:
   #</diff>
      <filename>lib/auto_admin_configuration.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a888c9014610ab89a0738b663837658ab5ff6399</id>
    </parent>
  </parents>
  <author>
    <name>Gufo Pelato</name>
    <email>gufo.pelato@gmail.com</email>
  </author>
  <url>http://github.com/baldowl/auto_admin/commit/f2af8eb0b9ec6ba708776490cafa982090cb2e95</url>
  <id>f2af8eb0b9ec6ba708776490cafa982090cb2e95</id>
  <committed-date>2009-10-08T00:23:24-07:00</committed-date>
  <authored-date>2009-10-08T00:23:24-07:00</authored-date>
  <message>Better handling of the admin model.

Closes #1.</message>
  <tree>02c039052bbcf541040b9734a16210d8843b1329</tree>
  <committer>
    <name>Gufo Pelato</name>
    <email>gufo.pelato@gmail.com</email>
  </committer>
</commit>
