X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7c98b41cc89068d049a18f8738276f19cd47095e..7f89545b2cc5b6ae020aa11431fc4b28c5cfa436:/app/models/note_comment.rb?ds=sidebyside 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