Commit f6957f76 authored by Miguel Cabeça's avatar Miguel Cabeça

Fix image url for emoji.

parent ab191963
...@@ -160,7 +160,7 @@ module ApplicationHelper ...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment