]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/note_comment.rb
Police the MAX_NOTE_REQUEST_AREA limit on the client
[rails.git] / app / models / note_comment.rb
index bcbcf79beb0aaf472a6bf5217dcfa846b24b7398..0500acb8bf2b11ffb12eda1c54bac03210ef5143 100644 (file)
@@ -18,4 +18,9 @@ class NoteComment < ActiveRecord::Base
       self.author.display_name
     end
   end
+
+  # Return the comment text
+  def body
+    RichText.new("text", read_attribute(:body))
+  end
 end