复制课程图片出错

This commit is contained in:
guange 2016-02-04 17:30:49 +08:00
parent b2551f904b
commit 2cf253a26b
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ module AvatarHelper
if source.class && source.id && File.exist?(disk_filename(source.class,source.id))
avatar_image(source, false)
elsif copy_course?(source.class, source.id)
avatar_image(source, true)
get_avatar(Course.find(source.is_copy)) rescue nil
else
File.join(relative_path,avatar_directory(source.class),'0')
end