X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8938ab79975d4152a4d6d3c8ceafdbda30b6b367..0c2e471708911235ded4015dfe9e957e9f1430f0:/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