diff options
author | Christos Zisopoulos <christos@me.com> | 2011-09-26 18:56:30 +0200 |
---|---|---|
committer | Christos Zisopoulos <christos@me.com> | 2011-09-26 18:56:30 +0200 |
commit | 1996e93eaa97993e176d2036be7b76d93709b141 (patch) | |
tree | d7993169bd183e2cef2e77bc2fd41690b83f4367 /actionpack/lib/sprockets | |
parent | b8ea31540a7f3b195a211457a73de7a22b30059b (diff) | |
download | rails-1996e93eaa97993e176d2036be7b76d93709b141.tar.gz rails-1996e93eaa97993e176d2036be7b76d93709b141.tar.bz2 rails-1996e93eaa97993e176d2036be7b76d93709b141.zip |
Refactor image_path to use asset_path directly
Diffstat (limited to 'actionpack/lib/sprockets')
-rw-r--r-- | actionpack/lib/sprockets/helpers/rails_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/sprockets/helpers/rails_helper.rb b/actionpack/lib/sprockets/helpers/rails_helper.rb index b60165de5b..c8c6c3ddd9 100644 --- a/actionpack/lib/sprockets/helpers/rails_helper.rb +++ b/actionpack/lib/sprockets/helpers/rails_helper.rb @@ -61,7 +61,7 @@ module Sprockets end def image_path(source) - asset_paths.compute_public_path(source, asset_prefix) + asset_path(source) end alias_method :path_to_image, :image_path # aliased to avoid conflicts with an image_path named route |