注释掉id转换成登录名
This commit is contained in:
parent
786110f711
commit
16b6c55637
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue