Skip to content

Commit

Permalink
Merge pull request #9 from rtryoda/master
Browse files Browse the repository at this point in the history
Change avator path to relative
  • Loading branch information
dup2 authored Aug 15, 2016
2 parents 5eeb1ff + 631dcc1 commit a8a084b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/application_helper_avatar_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def avatar_with_local(user, options = { })
if user.is_a?(User)then
av = user.attachments.find_by_description 'avatar'
if av then
image_url = url_for :only_path => false, :controller => 'account', :action => 'get_avatar', :id => user
image_url = url_for :only_path => true, :controller => 'account', :action => 'get_avatar', :id => user
options[:size] = "64" unless options[:size]
return "<img class=\"gravatar\" width=\"#{options[:size]}\" height=\"#{options[:size]}\" src=\"#{image_url}\" />".html_safe
end
Expand Down

0 comments on commit a8a084b

Please sign in to comment.