From 631dcc14dacf467f5745f2f001b48bcb0c37a727 Mon Sep 17 00:00:00 2001 From: rtryoda Date: Thu, 30 Jun 2016 10:38:06 +0900 Subject: [PATCH] Change avator path to relative --- lib/application_helper_avatar_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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