Fix image url for emoji.
This commit is contained in:
parent
ab19196391
commit
f6957f7658
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def image_url(source)
|
||||
root_url + path_to_image(source)
|
||||
root_url.sub(/#{root_path}$/,'') + path_to_image(source)
|
||||
end
|
||||
alias_method :url_to_image, :image_url
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue