diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4dbac0730..6a1c00ae6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -57,12 +57,12 @@ module ApplicationHelper end # 重置user_path,目的是将id转换成用户名 - def user_path(resource, parameters = {}) - if Fixnum === resource - resource = User.find(resource) - end - super - end + # def user_path(resource, parameters = {}) + # if Fixnum === resource + # resource = User.find(resource) + # end + # super + # end # 历史数据(老版本库数据)处理完则可以修改该放放 def get_rep_identifier_by_project project diff --git a/app/models/user.rb b/app/models/user.rb index 730a7fe0e..35d0e7a6b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -321,9 +321,9 @@ class User < Principal end # id 转换成 登录名 - def to_param - self.login.to_i > 0 ? id : login - end + # def to_param + # self.login.to_i > 0 ? id : login + # end def my_blogs_count