diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2012-09-30 14:57:04 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2012-09-30 14:57:04 -0700 |
commit | a6cfd33865a11eefcb3431450c8f2ad2b2766066 (patch) | |
tree | 23cce4b9570dd393eff4a7448b1316dab7361b45 /actionpack | |
parent | 2b05bac35ff06319eeac1b88aee99c65915dfc02 (diff) | |
download | rails-a6cfd33865a11eefcb3431450c8f2ad2b2766066.tar.gz rails-a6cfd33865a11eefcb3431450c8f2ad2b2766066.tar.bz2 rails-a6cfd33865a11eefcb3431450c8f2ad2b2766066.zip |
Add a changelog entry for asset aliasing update in sprockets-rails. Supports referencing foo.js as foo/index.js and vice versa.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/CHANGELOG.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 490eb17df3..7fd6cfa859 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -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. |