diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 6c4240578939080d8fe180427e208cbb10447ba1..f2a0a95fd9b55b0022b015106212c149b5ca5dc9 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