<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -10,6 +10,7 @@
   * Update README
   * Gemify
   * Update CHANGELOG email
+  * Update authentication patch
 
 2008-06-12 - Sean Huber (shuber@huberry.com)
 	* Update README</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -43,8 +43,7 @@ module Huberry
         def find_current_user(force_query = false)
           if @queried_for_current_user.nil? || force_query
             @queried_for_current_user = true
-            underscored_authentication_model = self.class.authentication_model.to_s.underscore
-            self.current_user = find_current_account.send(underscored_authentication_model.pluralize.to_sym).find(session[&quot;#{underscored_authentication_model}_id&quot;.to_sym]) rescue nil
+            self.current_user = find_current_account.send(self.class.authentication_options[:model].to_s.underscore.pluralize.to_sym).find(session[authentication_session_field]) rescue nil
           end
           self.current_user
         end</diff>
      <filename>lib/subdomain_account.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 Gem::Specification.new do |s| 
   s.name    = 'subdomain_account'
-  s.version = '1.0.0'
+  s.version = '1.0.1'
   s.date    = '2009-01-09'
   
   s.summary     = 'A rails gem/plugin that handles subdomain accounts'</diff>
      <filename>subdomain_account.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -42,11 +42,15 @@ module Huberry
       module InstanceMethods
         def self.included(base)
           base.class_eval do
-            cattr_accessor :authentication_model
-            self.authentication_model = 'User'
+            cattr_accessor :authentication_options
+            self.authentication_options = { :model =&gt; 'User' }
             attr_accessor :current_user
           end
         end
+        
+        def authentication_session_field
+          :user_id
+        end
       end
     end
   end</diff>
      <filename>test/init.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2d9fd2de252da96c1f8e5471973e0d363d596e58</id>
    </parent>
  </parents>
  <author>
    <name>Sean Huber</name>
    <email>shuber@huberry.com</email>
  </author>
  <url>http://github.com/shuber/subdomain_account/commit/a6ec1f83a0d363aa754f133977d976a28809d0be</url>
  <id>a6ec1f83a0d363aa754f133977d976a28809d0be</id>
  <committed-date>2009-01-09T12:04:02-08:00</committed-date>
  <authored-date>2009-01-09T12:04:02-08:00</authored-date>
  <message>Update authentication patch</message>
  <tree>f94a843c5e944d23273e3ef7729e60c220dde58d</tree>
  <committer>
    <name>Sean Huber</name>
    <email>shuber@huberry.com</email>
  </committer>
</commit>
