Improve the CHANGELOG entry [ci skip]
This commit is contained in:
parent
e337789563
commit
6ac677fd87
@ -1,22 +1,21 @@
|
|||||||
* pass app config to controller helper proxy
|
* Make assets helpers work in the controllers like it works in the views.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
# config/application.rb
|
# config/application.rb
|
||||||
config.asset_host = 'http://mycdn.com'
|
config.asset_host = 'http://mycdn.com'
|
||||||
|
|
||||||
# Somewhere else
|
|
||||||
ActionController::Base.helpers.asset_path('fallback.png')
|
ActionController::Base.helpers.asset_path('fallback.png')
|
||||||
# => http://mycdn.com/assets/fallback.png
|
# => http://mycdn.com/assets/fallback.png
|
||||||
|
|
||||||
Fixes #10051
|
Fixes #10051.
|
||||||
|
|
||||||
*Tima Maslyuchenko*
|
*Tima Maslyuchenko*
|
||||||
|
|
||||||
* Respect `SCRIPT_NAME` when using `redirect` with a relative path
|
* Respect `SCRIPT_NAME` when using `redirect` with a relative path
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
# application routes.rb
|
# application routes.rb
|
||||||
mount BlogEngine => '/blog'
|
mount BlogEngine => '/blog'
|
||||||
|
|
||||||
@ -28,7 +27,7 @@
|
|||||||
the path. It also allows redirects to work where the application is deployed to a
|
the path. It also allows redirects to work where the application is deployed to a
|
||||||
subdirectory of a website.
|
subdirectory of a website.
|
||||||
|
|
||||||
Fixes #7977
|
Fixes #7977.
|
||||||
|
|
||||||
*Andrew White*
|
*Andrew White*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user