diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-05-21 15:32:13 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-05-21 15:47:12 +0300 |
commit | 39f9f02ab04973b213bef8c6f4c1a71043ed709d (patch) | |
tree | 6ba48175e1ff5b72f4b70e4f1051c264afa979ca /actionmailer/test/asset_host_test.rb | |
parent | 64e12ff109ad934939df317e532647c603f90520 (diff) | |
download | rails-39f9f02ab04973b213bef8c6f4c1a71043ed709d.tar.gz rails-39f9f02ab04973b213bef8c6f4c1a71043ed709d.tar.bz2 rails-39f9f02ab04973b213bef8c6f4c1a71043ed709d.zip |
Assets: don't add extension if other given and file exists
We should lookup if asset without appended extension exists.
When sprockets are disabled the asset tag helpers incorporate
this logic. When sprockets are enabled we should have the same
logic.
For example, we have style.ext file in app/assets/stylesheets and
we use stylesheet_link_tag in the layout. In this case we should
have /assets/style.ext instead of /assets/style.ext.css in the
output.
Closes #6310
Diffstat (limited to 'actionmailer/test/asset_host_test.rb')
0 files changed, 0 insertions, 0 deletions