diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-03 12:48:00 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-03 12:48:00 -0500 |
commit | 42d215a925a228778e43f7040f03ad8f3eb5341c (patch) | |
tree | 3fc10bd3dcad49eeb04ab70128fb1c062f5ca0de /actionpack/lib/action_view/template.rb | |
parent | 75e04b52956512d554c83e0134a81c980c15b4fa (diff) | |
download | rails-42d215a925a228778e43f7040f03ad8f3eb5341c.tar.gz rails-42d215a925a228778e43f7040f03ad8f3eb5341c.tar.bz2 rails-42d215a925a228778e43f7040f03ad8f3eb5341c.zip |
Moved TemplateHandlers to Base
Diffstat (limited to 'actionpack/lib/action_view/template.rb')
-rw-r--r-- | actionpack/lib/action_view/template.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/template.rb b/actionpack/lib/action_view/template.rb index 0cba1942f7..d4118f0f86 100644 --- a/actionpack/lib/action_view/template.rb +++ b/actionpack/lib/action_view/template.rb @@ -1,6 +1,9 @@ module ActionView #:nodoc: class Template #:nodoc: - extend TemplateHandlers + class << self + # TODO: Deprecate + delegate :register_template_handler, :to => 'ActionView::Base' + end attr_accessor :locals attr_reader :handler, :path, :extension, :filename, :method @@ -20,7 +23,7 @@ module ActionView #:nodoc: set_extension_and_file_name @locals = locals || {} - @handler = self.class.handler_class_for_extension(@extension).new(@view) + @handler = Base.handler_class_for_extension(@extension).new(@view) end def render_template |