<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,7 @@
+# Version 0.2.1
+
+* Bug fix when ApplicationController is already loaded when we load respond_to.
+
 # Version 0.2.0
 
 * Added support success/failure blocks.</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 Inherited Resources
 License: MIT
-Version: 0.2.0
+Version: 0.2.1
 
 You can also read this README in pretty html at the GitHub project Wiki page:
 </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 Gem::Specification.new do |s|
   s.name     = &quot;inherited_resources&quot;
-  s.version  = &quot;0.2.0&quot;
-  s.date     = &quot;2009-02-06&quot;
+  s.version  = &quot;0.2.1&quot;
+  s.date     = &quot;2009-02-07&quot;
   s.summary  = &quot;Inherited Resources speeds up development by making your controllers inherit all restful actions so you just have to focus on what is important.&quot;
   s.email    = &quot;jose.valim@gmail.com&quot;
   s.homepage = &quot;http://github.com/josevalim/inherited_resources&quot;</diff>
      <filename>inherited_resources.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -267,6 +267,14 @@ module ActionController #:nodoc:
         end
       end
 
+    # If ApplicationController is already defined around here, we should call
+    # inherited_with_inheritable_attributes to insert formats_for_respond_to.
+    # This usually happens only on Rails 2.3.
+    #
+    if defined?(ApplicationController)
+      self.send(:inherited_with_inheritable_attributes, ApplicationController)
+    end
+
   end
 
   module MimeResponds #:nodoc:</diff>
      <filename>lib/inherited_resources/respond_to.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>579fc66037e313824e7f3b8836b47b9f625da4a3</id>
    </parent>
  </parents>
  <author>
    <name>Jos&#233; Valim</name>
    <email>jose.valim@gmail.com</email>
  </author>
  <url>http://github.com/josevalim/inherited_resources/commit/adaaf2f02984c694e1142434f111e91dd567540f</url>
  <id>adaaf2f02984c694e1142434f111e91dd567540f</id>
  <committed-date>2009-02-07T05:31:18-08:00</committed-date>
  <authored-date>2009-02-07T05:31:18-08:00</authored-date>
  <message>Bug fix when ApplicationController is already loaded when we load respond_to (now we are on 0.2.1)</message>
  <tree>e9e0f6684ab5eb4c361d3696a9f22731ef8bec74</tree>
  <committer>
    <name>Jos&#233; Valim</name>
    <email>jose.valim@gmail.com</email>
  </committer>
</commit>
