提交 1996e93e 编写于 作者: C Christos Zisopoulos

Refactor image_path to use asset_path directly

上级 b8ea3154
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册