diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-05-23 02:29:44 +0200 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-05-23 02:29:55 +0200 |
commit | 9286d422f8aff0aff8529edc93966fcab987c1af (patch) | |
tree | 6af4931f8c1f00a144f5496e3f818a80212239ac | |
parent | 5097bd624110e190fee8033542db5d993a27696b (diff) | |
download | rails-9286d422f8aff0aff8529edc93966fcab987c1af.tar.gz rails-9286d422f8aff0aff8529edc93966fcab987c1af.tar.bz2 rails-9286d422f8aff0aff8529edc93966fcab987c1af.zip |
Add asset_host to Rails2Compatibility
-rw-r--r-- | actionpack/lib/action_controller/new_base/compatibility.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/new_base/compatibility.rb b/actionpack/lib/action_controller/new_base/compatibility.rb index 250e7f0dff..2bc76338b9 100644 --- a/actionpack/lib/action_controller/new_base/compatibility.rb +++ b/actionpack/lib/action_controller/new_base/compatibility.rb @@ -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 |