public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
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.
lifo (author)
Sat May 17 04:22:15 -0700 2008
commit  2463e38efd3cbcc10e7b0a93ad9c2d2224340668
tree    f80e21dbef9541a9c93361d9879701438544eb68
parent  2183c220ada046993274ccdc6f1f86e9e8a3a5c6
...
168
169
170
171
172
173
174
175
176
 
 
 
 
 
177
178
179
...
168
169
170
 
 
 
 
 
171
172
173
174
175
176
177
178
179
0
@@ -168,12 +168,12 @@
0
     # Specify whether file modification times should be checked to see if a template needs recompilation
0
     @@cache_template_loading = false
0
     cattr_accessor :cache_template_loading
0
-
0
- # Specify whether file extension lookup should be cached, and whether template base path lookup should be cached.
0
- # Should be +false+ for development environments. Defaults to +true+.
0
- @@cache_template_extensions = true
0
- cattr_accessor :cache_template_extensions
0
     
0
+ def self.cache_template_extensions=(*args)
0
+ ActiveSupport::Deprecation.warn("config.action_view.cache_template_extensions option has been deprecated and has no affect. " <<
0
+ "Please remove it from your config files.", caller)
0
+ end
0
+
0
     # Specify whether RJS responses should be wrapped in a try/catch block
0
     # that alert()s the caught exception (and then re-raises it).
0
     @@debug_rjs = false

Comments

    No one has commented yet.