<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/controllers/admin/articles_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/admin/gists_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/admin/pictures_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/admin/quotes_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/admin/snippets_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/admin/tweets_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/articles_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/gists_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/pictures_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/quotes_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/snippets_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/tweets_controller.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,21 +1,14 @@
 class PostsController &lt; Application
-  include SingleControllerInheritance
-  
-  @@subtypes = []
-  cattr_reader :subtypes # Used by feeds_controller to calculate cache expirations.
+
+  # Used by feeds_controller to calculate cache expirations.
+  @@subtypes = [:articles, :links, :pictures, :quotes, :snippets, :tweets, :gists]
+  cattr_reader :subtypes 
   
   before_filter :redirect_to_admin, :if =&gt; :logged_in?
   
   caches_page :index
   caches_page :show
   
-  # Generates a new controller for each of these resources that will inherit
-  # from PostsController, with the block being called for each.
-  expose_as :articles, :links, :pictures, :quotes, :snippets, :tweets, :gists do |name|
-    subtypes &lt;&lt; name
-    define_method(:post_type) { name }
-  end
-  
   # GET /posts
   # GET /posts.xml
   def index</diff>
      <filename>app/controllers/posts_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,6 @@ RAILS_GEM_VERSION = '2.3.0' unless defined? RAILS_GEM_VERSION
 require File.join(File.dirname(__FILE__), 'boot')
 
 require 'authenticated_model'
-require 'single_controller_inheritance'
 
 Rails::Initializer.run do |config|
   config.load_paths += %W[</diff>
      <filename>config/environment.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>lib/single_controller_inheritance.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>443df4cad489ed9a0dc5b7d4a588bb0fc8348d20</id>
    </parent>
  </parents>
  <author>
    <name>Pat Nakajima</name>
    <email>patnakajima@gmail.com</email>
  </author>
  <url>http://github.com/nakajima/aintablog/commit/0929f6ab371ba66948704240bd7ac3d35f385de6</url>
  <id>0929f6ab371ba66948704240bd7ac3d35f385de6</id>
  <committed-date>2009-02-02T22:47:53-08:00</committed-date>
  <authored-date>2009-02-02T22:47:53-08:00</authored-date>
  <message>gave in and just added subclasses of PostsController and Admin::PostsController due to weirdnesses with dynamically added controllers</message>
  <tree>80436e80fb526b8bcc459c86031b0426400d5b6d</tree>
  <committer>
    <name>Pat Nakajima</name>
    <email>patnakajima@gmail.com</email>
  </committer>
</commit>
