diff --git a/lib/application_helper_avatar_patch.rb b/lib/application_helper_avatar_patch.rb index 7496955..cb3a2db 100644 --- a/lib/application_helper_avatar_patch.rb +++ b/lib/application_helper_avatar_patch.rb @@ -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 "".html_safe end