]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/note.rb
Removed author_{id, ip} methods from Note model
[rails.git] / app / models / note.rb
index d3d4d5c73eb568c96aa25e424f5b4521a6ca4371..376516e9b4e8841a0ef9f132102d41ec2fd04c36 100644 (file)
@@ -89,14 +89,14 @@ class Note < ApplicationRecord
     closed_at + DEFAULT_FRESHLY_CLOSED_LIMIT
   end
 
-  # Return the author object, derived from the first comment
-  def author
-    comments.first.author
+  # Return the note's description, derived from the first comment
+  def description
+    comments.first.body
   end
 
-  # Return the author IP address, derived from the first comment
-  def author_ip
-    comments.first.author_ip
+  # Return the note's author object, derived from the first comment
+  def author
+    comments.first.author
   end
 
   private