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:
parent
5097bd6241
commit
9286d422f8
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue