1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add asset_host to Rails2Compatibility

This commit is contained in:
Pratik Naik 2009-05-23 02:29:44 +02:00
parent 5097bd6241
commit 9286d422f8

View file

@ -56,6 +56,12 @@ module ActionController
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