X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/45487e1ff8e7d334792440a2b5b3b1067269bfaf..18899f2867c85ea4bff8ecb188f57768300b4f8d:/app/models/issue_comment.rb diff --git a/app/models/issue_comment.rb b/app/models/issue_comment.rb index 07647d679..8d150a02f 100644 --- a/app/models/issue_comment.rb +++ b/app/models/issue_comment.rb @@ -25,4 +25,8 @@ class IssueComment < ApplicationRecord belongs_to :user validates :body, :presence => true, :characters => true + + def body + RichText.new("markdown", self[:body]) + end end