diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-11-23 13:42:07 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-11-23 13:42:07 -0600 |
commit | 2c01f2b4e9d4a95bb2baca8ae57209eb10aa78b2 (patch) | |
tree | 7ef23887bc8642b99d9b99736ccccf89eaf5a6d9 /actionpack/lib/action_view/template_handlers.rb | |
parent | e201fc750bf4b7dff1875b7fcdd47f1686ef2052 (diff) | |
download | rails-2c01f2b4e9d4a95bb2baca8ae57209eb10aa78b2.tar.gz rails-2c01f2b4e9d4a95bb2baca8ae57209eb10aa78b2.tar.bz2 rails-2c01f2b4e9d4a95bb2baca8ae57209eb10aa78b2.zip |
use autoload instead of explicit requires for ActionView
Diffstat (limited to 'actionpack/lib/action_view/template_handlers.rb')
-rw-r--r-- | actionpack/lib/action_view/template_handlers.rb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/template_handlers.rb b/actionpack/lib/action_view/template_handlers.rb index 6c8aa4c2a7..1052c4e75c 100644 --- a/actionpack/lib/action_view/template_handlers.rb +++ b/actionpack/lib/action_view/template_handlers.rb @@ -1,10 +1,13 @@ -require 'action_view/template_handler' -require 'action_view/template_handlers/builder' -require 'action_view/template_handlers/erb' -require 'action_view/template_handlers/rjs' - module ActionView #:nodoc: module TemplateHandlers #:nodoc: + autoload :ERB, 'action_view/template_handlers/erb' + autoload :RJS, 'action_view/template_handlers/rjs' + autoload :Builder, 'action_view/template_handlers/builder' + + # Legacy Compilable stub + module Compilable + end + def self.extended(base) base.register_default_template_handler :erb, TemplateHandlers::ERB base.register_template_handler :rjs, TemplateHandlers::RJS |