Permalink
Browse files

Refactor image_path to use asset_path directly

  • Loading branch information...
1 parent b8ea315 commit 1996e93eaa97993e176d2036be7b76d93709b141 Christos Zisopoulos committed Sep 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/sprockets/helpers/rails_helper.rb
@@ -61,7 +61,7 @@ def asset_path(source, options = {})
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

0 comments on commit 1996e93

Please sign in to comment.