Fix image url for emoji.

This commit is contained in:
Miguel Cabeça 2013-02-11 12:22:06 +00:00
parent ab19196391
commit f6957f7658

View file

@ -160,7 +160,7 @@ module ApplicationHelper
end end
def image_url(source) def image_url(source)
root_url + path_to_image(source) root_url.sub(/#{root_path}$/,'') + path_to_image(source)
end end
alias_method :url_to_image, :image_url alias_method :url_to_image, :image_url
end end