diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-16 23:50:02 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-16 23:50:02 +0000 |
commit | 56e646296af1929f07f0e2981deddba95cdbf5d0 (patch) | |
tree | 1b95c2fe403cba5be1e7a6872cff32adcc55d426 /actionpack/CHANGELOG | |
parent | d7e6df43a9d41f1380d79b93881ef0abacb8973b (diff) | |
download | rails-56e646296af1929f07f0e2981deddba95cdbf5d0.tar.gz rails-56e646296af1929f07f0e2981deddba95cdbf5d0.tar.bz2 rails-56e646296af1929f07f0e2981deddba95cdbf5d0.zip |
Added option to pass proc to ActionController::Base.asset_host for maximum configurability (closes #10521) [chuyeow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8421 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r-- | actionpack/CHANGELOG | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index bf8b538f99..cbf066228c 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,15 @@ *2.0.2* (December 16th, 2007) +* Added option to pass proc to ActionController::Base.asset_host for maximum configurability #10521 [chuyeow]. Example: + + ActionController::Base.asset_host = Proc.new { |source| + if source.starts_with?('/images') + "http://images.example.com" + else + "http://assets.example.com" + end + } + * Fixed that ActionView#file_exists? would be incorrect if @first_render is set #10569 [dbussink] * Added that Array#to_param calls to_param on all it's elements #10473 [brandon] |