]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Remove the author_name field from notes
[rails.git] / app / helpers / application_helper.rb
index 18f233e506092d05d9e89ac302b8376ff2d021cb..e32d1bb6ead572bace0b7d64a7c86f1776b9f087 100644 (file)
@@ -102,9 +102,9 @@ module ApplicationHelper
 
   def note_author(object, link_options = {})
     if object.author.nil?
 
   def note_author(object, link_options = {})
     if object.author.nil?
-      h(object.author_name)
+      ""
     else
     else
-      link_to h(object.author_name), link_options.merge({:controller => "user", :action => "view", :display_name => object.author_name})
+      link_to h(object.author.display_name), link_options.merge({:controller => "user", :action => "view", :display_name => object.author.display_name})
     end
   end
 end
     end
   end
 end