Permalink
Browse files

abondoned template caching.

  • Loading branch information...
1 parent 07757f6 commit a37812c55e69c32128db25564c3b66d3a27c56c3 shugo committed Feb 24, 2006
Showing with 1 addition and 19 deletions.
  1. +1 −19 lib/apache/rails-dispatcher.rb
@@ -110,8 +110,7 @@ def handler(r)
env = get_environment(r.options["rails_root"])
# set classpath for Marshal
Apache::RailsDispatcher.const_set(:CURRENT_MODULE, env.module)
- ActionView::Base.class_eval("@@compile_time = env.compile_time")
- ActionView::Base::CompiledTemplates.module = env.compiled_templates_module
+ ActionView::Base.class_eval("@@compile_time.clear")
Dependencies.loaded = env.loaded_dependencies
@@current_environment = env
begin
@@ -441,20 +440,3 @@ def loaded_plugins
end
end
end
-
-module ActionView
- class Base
- module CompiledTemplates
- @@template_object = nil
-
- def self.module=(mod)
- @@template_object = Object.new
- @@template_object.extend(mod)
- end
-
- def method_missing(mid, *args)
- return @@template_object.send(mid, *args)
- end
- end
- end
-end

0 comments on commit a37812c

Please sign in to comment.