解决用户提交完代码后再修改邮箱的问题

This commit is contained in:
huang 2015-10-30 15:56:59 +08:00
parent aa4710d872
commit 60dd55e52d
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ module RepositoriesHelper
def user_commit_rep(mail)
user = User.find_by_mail(mail)
user.nil? ? User.find(2) : User.find_by_mail(mail)
end
def render_properties(properties)