提交 2463e38e 编写于 作者: P Pratik Naik

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.
上级 2183c220
...@@ -169,10 +169,10 @@ class Base ...@@ -169,10 +169,10 @@ class Base
@@cache_template_loading = false @@cache_template_loading = false
cattr_accessor :cache_template_loading cattr_accessor :cache_template_loading
# Specify whether file extension lookup should be cached, and whether template base path lookup should be cached. def self.cache_template_extensions=(*args)
# Should be +false+ for development environments. Defaults to +true+. ActiveSupport::Deprecation.warn("config.action_view.cache_template_extensions option has been deprecated and has no affect. " <<
@@cache_template_extensions = true "Please remove it from your config files.", caller)
cattr_accessor :cache_template_extensions end
# Specify whether RJS responses should be wrapped in a try/catch block # Specify whether RJS responses should be wrapped in a try/catch block
# that alert()s the caught exception (and then re-raises it). # that alert()s the caught exception (and then re-raises it).
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册