]> 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 17b57c0fa689ff5d6691d71b05ce6539a5770688..376516e9b4e8841a0ef9f132102d41ec2fd04c36 100644 (file)
@@ -99,16 +99,6 @@ class Note < ApplicationRecord
     comments.first.author
   end
 
     comments.first.author
   end
 
-  # Return the note's author ID, derived from the first comment
-  def author_id
-    comments.first.author_id
-  end
-
-  # Return the note's author IP address, derived from the first comment
-  def author_ip
-    comments.first.author_ip
-  end
-
   private
 
   # Fill in default values for new notes
   private
 
   # Fill in default values for new notes