diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2011-04-19 19:05:07 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2011-04-19 19:05:07 +0200 |
commit | 626bcc9bf415ca9872bbdaceac30a4df9aca86bb (patch) | |
tree | 2e3ccb325690ff6051d867676a773732ddd2b805 /actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb | |
parent | d35c91225e8eea967358328ba618e6608222a615 (diff) | |
download | rails-626bcc9bf415ca9872bbdaceac30a4df9aca86bb.tar.gz rails-626bcc9bf415ca9872bbdaceac30a4df9aca86bb.tar.bz2 rails-626bcc9bf415ca9872bbdaceac30a4df9aca86bb.zip |
Switch to asset_path and make it available in the Sprockets::Context (now you can do asset_path("logo.png") in a stylesheet.css.erb file and get fingerprinting)
Diffstat (limited to 'actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb b/actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb index a994afb65e..309762ee05 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb @@ -64,7 +64,7 @@ module ActionView # stylesheet_path "http://www.railsapplication.com/css/style.css" # => http://www.railsapplication.com/css/style.css def stylesheet_path(source) if config.use_sprockets - sprockets_stylesheet_path(source) + asset_path(source, 'css') else asset_paths.compute_public_path(source, 'stylesheets', 'css') end |