diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2012-09-30 14:46:06 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2012-09-30 14:55:23 -0700 |
commit | 19987b64af0d543a6292c3fd9b0b877f70eab306 (patch) | |
tree | 5f461667b3017b46c8b1c166169912b229c20888 /actionpack/CHANGELOG.md | |
parent | 5cb5092a70e97d64c5df6fa899548ba44d1d066e (diff) | |
download | rails-19987b64af0d543a6292c3fd9b0b877f70eab306.tar.gz rails-19987b64af0d543a6292c3fd9b0b877f70eab306.tar.bz2 rails-19987b64af0d543a6292c3fd9b0b877f70eab306.zip |
Asset manifest includes aliases for foo.js -> foo/index.js and vice versa. Bump Sprockets requirements from 2.1+ to 2.2+ and let it answer "should we compile this asset?" for us.
Diffstat (limited to 'actionpack/CHANGELOG.md')
-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 69937accf2..fe0c7c40d9 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,5 +1,19 @@ ## Rails 3.2.9 (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. |