X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e660e609661edadc1ed5ad49d6e83e936b2f91cd..7f89545b2cc5b6ae020aa11431fc4b28c5cfa436:/app/models/note_comment.rb diff --git a/app/models/note_comment.rb b/app/models/note_comment.rb index bcbcf79be..0500acb8b 100644 --- a/app/models/note_comment.rb +++ b/app/models/note_comment.rb @@ -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