From 1996e93eaa97993e176d2036be7b76d93709b141 Mon Sep 17 00:00:00 2001 From: Christos Zisopoulos Date: Mon, 26 Sep 2011 18:56:30 +0200 Subject: Refactor image_path to use asset_path directly --- actionpack/lib/sprockets/helpers/rails_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack') 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 -- cgit v1.2.3