aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-05-17 12:22:15 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-05-17 12:22:15 +0100
commit2463e38efd3cbcc10e7b0a93ad9c2d2224340668 (patch)
treef80e21dbef9541a9c93361d9879701438544eb68 /actionpack
parent2183c220ada046993274ccdc6f1f86e9e8a3a5c6 (diff)
downloadrails-2463e38efd3cbcc10e7b0a93ad9c2d2224340668.tar.gz
rails-2463e38efd3cbcc10e7b0a93ad9c2d2224340668.tar.bz2
rails-2463e38efd3cbcc10e7b0a93ad9c2d2224340668.zip
Deprecate ActionView::Base.cache_template_extensions
This commit deprecates unused ActionView::Base.cache_template_extensions option and adds a deprecation warning for those having it in env specific config files. Thanks to José Valim for pointing this out.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/base.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index 4840b2526d..f398756550 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -168,12 +168,12 @@ module ActionView #:nodoc:
# Specify whether file modification times should be checked to see if a template needs recompilation
@@cache_template_loading = false
cattr_accessor :cache_template_loading
-
- # Specify whether file extension lookup should be cached, and whether template base path lookup should be cached.
- # Should be +false+ for development environments. Defaults to +true+.
- @@cache_template_extensions = true
- cattr_accessor :cache_template_extensions
+ def self.cache_template_extensions=(*args)
+ ActiveSupport::Deprecation.warn("config.action_view.cache_template_extensions option has been deprecated and has no affect. " <<
+ "Please remove it from your config files.", caller)
+ end
+
# Specify whether RJS responses should be wrapped in a try/catch block
# that alert()s the caught exception (and then re-raises it).
@@debug_rjs = false