提交 9286d422 编写于 作者: P Pratik Naik

Add asset_host to Rails2Compatibility

上级 5097bd62
......@@ -56,6 +56,12 @@ class ::ActionController::ActionControllerError < StandardError #:nodoc:
cattr_accessor :consider_all_requests_local
self.consider_all_requests_local = true
# Prepends all the URL-generating helpers from AssetHelper. This makes it possible to easily move javascripts, stylesheets,
# and images to a dedicated asset server away from the main web server. Example:
# ActionController::Base.asset_host = "http://assets.example.com"
@@asset_host = ""
cattr_accessor :asset_host
end
# For old tests
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册