去掉id转换用户名
This commit is contained in:
parent
3210204395
commit
be88914e39
|
@ -33,13 +33,6 @@ module ApplicationHelper
|
|||
extend Forwardable
|
||||
def_delegators :wiki_helper, :wikitoolbar_for, :heads_for_wiki_formatter
|
||||
|
||||
def user_path(resource, parameters = {})
|
||||
if Fixnum === resource
|
||||
resource = User.find(resource)
|
||||
end
|
||||
super
|
||||
end
|
||||
|
||||
# def user_blogs_path(resource,parameters={})
|
||||
# super
|
||||
# end
|
||||
|
|
|
@ -311,11 +311,6 @@ class User < Principal
|
|||
)
|
||||
end
|
||||
|
||||
# id 转换成 登录名
|
||||
def to_param
|
||||
Fixnum === self.login ? id : login
|
||||
end
|
||||
|
||||
# ======================================================================
|
||||
def my_workplace
|
||||
self.user_extensions.try(:occupation).to_s
|
||||
|
|
Loading…
Reference in New Issue