X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3a654c89197b40f4a623c0dd33b87b415623d97d..3fb931f9a86955faa39bec1fa4f2a731cbc74780:/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