diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-15 22:51:16 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-15 22:58:42 -0500 |
commit | 83e29b9773ac113ceacb1e36c2f333d692de2573 (patch) | |
tree | 5cc5a8d9c1c646550df1741da9f78783e22038fe /actionpack/lib/action_view/base.rb | |
parent | 5cc3ea6969f047a782fa8ac44530baeef597edb3 (diff) | |
download | rails-83e29b9773ac113ceacb1e36c2f333d692de2573.tar.gz rails-83e29b9773ac113ceacb1e36c2f333d692de2573.tar.bz2 rails-83e29b9773ac113ceacb1e36c2f333d692de2573.zip |
Removed config.action_view.cache_template_loading, use config.cache_classes instead
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r-- | actionpack/lib/action_view/base.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index 04e8d3a358..0ea96f045e 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -171,9 +171,10 @@ module ActionView #:nodoc: delegate :erb_trim_mode=, :to => 'ActionView::TemplateHandlers::ERB' end - # Specify whether templates should be cached. Otherwise the file we be read everytime it is accessed. - @@cache_template_loading = false - cattr_accessor :cache_template_loading + def self.cache_template_loading=(*args) + ActiveSupport::Deprecation.warn("config.action_view.cache_template_loading option has been deprecated and has no affect. " << + "Please remove it from your config files.", caller) + end def self.cache_template_extensions=(*args) ActiveSupport::Deprecation.warn("config.action_view.cache_template_extensions option has been deprecated and has no affect. " << |