<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -15,7 +15,9 @@ ActionController::Dispatcher.class_eval do
     run_callbacks :prepare_dispatch
 
     ActionController::Routing::Routes.reload
-#    ActionController::Base.view_paths.reload!
+    # we don't need this because of template_renderable_hacks
+#   ActionController::Base.view_paths.reload!
+    # this doesn't seem to have a heavy performance penalty
     ActionView::Helpers::AssetTagHelper::AssetTag::Cache.clear
   end
   </diff>
      <filename>lib/dispatcher_hacks.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,17 @@
 module ActionView #:nodoc:
+  
+  class Base
+    
+    def _pick_template_with_file_exists(template_path)
+      template=_pick_template_without_file_exists(template_path)
+      # call into the template just to make sure it's still there
+      # and if not give it a chance to raise MissingTemplate
+      template.file_changed?
+      template
+    end
+    alias_method_chain :_pick_template, :file_exists
+  end
+  
   class Template
     
     attr_accessor :last_modified
@@ -14,6 +27,7 @@ module ActionView #:nodoc:
     end
     
     def file_changed?
+      raise MissingTemplate.new([load_path], File.basename(filename)) unless File.exists?(filename)
       @last_modified.nil? or File.stat(filename).mtime &gt; @last_modified
     end
     </diff>
      <filename>lib/template_renderable_hacks.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c6c7b21028f0160ef4be8dce20248c15bbb84890</id>
    </parent>
  </parents>
  <author>
    <name>Josh Goebel</name>
    <email>dreamer3@gmail.com</email>
  </author>
  <url>http://github.com/yyyc514/rails_dev_mode_performance/commit/5905505ffc9de777509abc7fcb755e2f2399d504</url>
  <id>5905505ffc9de777509abc7fcb755e2f2399d504</id>
  <committed-date>2008-11-21T23:19:30-08:00</committed-date>
  <authored-date>2008-11-21T23:19:30-08:00</authored-date>
  <message>deal with templates getting deleted (no longer being present on disk)</message>
  <tree>23dfcffde5e05ececedaa0e0faa50623a40cb3d3</tree>
  <committer>
    <name>Josh Goebel</name>
    <email>dreamer3@gmail.com</email>
  </committer>
</commit>
