<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,4 @@
-== 2.1.1 released 2009-6-27
+== 2.1.1
 
 * Use mb_chars when downcasing the login string to support international characters.
 * Check for the existence of the :remember_me key before setting remember_me off of a hash.</diff>
      <filename>CHANGELOG.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,8 @@ module Authlogic
     # Adapts authlogic to work with rails. The point is to close the gap between what authlogic expects and what the rails controller object
     # provides. Similar to how ActiveRecord has an adapter for MySQL, PostgreSQL, SQLite, etc.
     class RailsAdapter &lt; AbstractAdapter
+      class AuthlogicLoadedTooLateError &lt; StandardError; end
+      
       def authenticate_with_http_basic(&amp;block)
         controller.authenticate_with_http_basic(&amp;block)
       end
@@ -23,9 +25,17 @@ module Authlogic
       # Lets Authlogic know about the controller object via a before filter, AKA &quot;activates&quot; authlogic.
       module RailsImplementation
         def self.included(klass) # :nodoc:
+          if defined?(::ApplicationController)
+            raise AuthlogicLoadedTooLateError.new(&quot;Authlogic is trying to prepend a before_filter in ActionController::Base to active itself&quot; +
+              &quot;, the problem is that ApplicationController has already been loaded meaning the before_filter won't get copied into your&quot; +
+              &quot; application. Generally this is due to another gem or plugin requiring your ApplicationController prematurely, such as&quot; +
+              &quot; the resource_controller plugin. The solution is to require Authlogic before these other gems / plugins. Please require&quot; +
+              &quot; authlogic first to get rid of this error.&quot;)
+          end
+          
           klass.prepend_before_filter :activate_authlogic
         end
-
+        
         private
           def activate_authlogic
             Authlogic::Session::Base.controller = RailsAdapter.new(self)</diff>
      <filename>lib/authlogic/controller_adapters/rails_adapter.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>90626be0fcf743a182fecd70457bd18687bf4e86</id>
    </parent>
  </parents>
  <author>
    <name>binarylogic</name>
    <email>bjohnson@binarylogic.com</email>
  </author>
  <url>http://github.com/binarylogic/authlogic/commit/694d75f464cb1f1f11be9072dd44b99babfd9249</url>
  <id>694d75f464cb1f1f11be9072dd44b99babfd9249</id>
  <committed-date>2009-07-03T22:31:47-07:00</committed-date>
  <authored-date>2009-07-03T22:31:47-07:00</authored-date>
  <message>* Added check to make sure Authlogic is not loaded too late, causing a NotActivated error.</message>
  <tree>08e8537afa15f1fe02a7f0c02b19398d98baa307</tree>
  <committer>
    <name>binarylogic</name>
    <email>bjohnson@binarylogic.com</email>
  </committer>
</commit>
