开源项目中新增tag,搜索查找待新增tag的obj

This commit is contained in:
fanqiang 2014-05-05 09:15:55 +08:00
parent 2c8580a4e8
commit e89d74e2a9
1 changed files with 2 additions and 0 deletions

View File

@ -658,6 +658,8 @@ class UsersController < ApplicationController
@obj = Attachment.find_by_id(@obj_id)
when '7' then
@obj = Contest.find_by_id(@obj_id)
when '8'
@obj = OpenSourceProject.find_by_id(@obj_id)
else
@obj = nil
end