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