From 0eb2c97aef1b7e3269ed5a7fdf9fbd057b015ae6 Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 16 Sep 2010 14:51:27 -0700 Subject: [PATCH] object_path shouldn't create links to users --- app/helpers/application_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 6c4240578..f2a0a95fd 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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