mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add a changelog entry for asset aliasing update in sprockets-rails. Supports referencing foo.js as foo/index.js and vice versa.
This commit is contained in:
parent
2b05bac35f
commit
a6cfd33865
1 changed files with 14 additions and 0 deletions
|
@ -1,5 +1,19 @@
|
|||
## Rails 4.0.0 (unreleased) ##
|
||||
|
||||
* Precompiled assets include aliases from foo.js to foo/index.js and vice versa.
|
||||
|
||||
# Precompiles phone-<digest>.css and aliases phone/index.css to phone.css.
|
||||
config.assets.precompile = [ 'phone.css' ]
|
||||
|
||||
# Precompiles phone/index-<digest>.css and aliases phone.css to phone/index.css.
|
||||
config.assets.precompile = [ 'phone/index.css' ]
|
||||
|
||||
# Both of these work with either precompile thanks to their aliases.
|
||||
<%= stylesheet_link_tag 'phone', media: 'all' %>
|
||||
<%= stylesheet_link_tag 'phone/index', media: 'all' %>
|
||||
|
||||
*Jeremy Kemper*
|
||||
|
||||
* `assert_template` is no more passing with what ever string that matches
|
||||
with the template name.
|
||||
|
||||
|
|
Loading…
Reference in a new issue