注释掉id转换成登录名

This commit is contained in:
huang 2016-10-20 13:34:02 +08:00
parent 786110f711
commit 16b6c55637
2 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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