object_path shouldn't create links to users
This commit is contained in:
parent
b155d07abd
commit
0eb2c97aef
1 changed files with 1 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def object_path(object, opts = {})
|
||||
object = object.person if object.is_a? User
|
||||
eval("#{object.class.to_s.underscore}_path(object, opts)")
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue