Skip to content

Commit a8a084b

Browse files
authored
Merge pull request #9 from rtryoda/master
Change avator path to relative
2 parents 5eeb1ff + 631dcc1 commit a8a084b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/application_helper_avatar_patch.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def avatar_with_local(user, options = { })
3030
if user.is_a?(User)then
3131
av = user.attachments.find_by_description 'avatar'
3232
if av then
33-
image_url = url_for :only_path => false, :controller => 'account', :action => 'get_avatar', :id => user
33+
image_url = url_for :only_path => true, :controller => 'account', :action => 'get_avatar', :id => user
3434
options[:size] = "64" unless options[:size]
3535
return "<img class=\"gravatar\" width=\"#{options[:size]}\" height=\"#{options[:size]}\" src=\"#{image_url}\" />".html_safe
3636
end

0 commit comments

Comments
 (0)