X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/461f99dfe03ed0dfea2d973378e0ace70134c199..0c2e471708911235ded4015dfe9e957e9f1430f0:/app/models/issue_comment.rb?ds=sidebyside diff --git a/app/models/issue_comment.rb b/app/models/issue_comment.rb index 69aa8bde9..8d150a02f 100644 --- a/app/models/issue_comment.rb +++ b/app/models/issue_comment.rb @@ -25,6 +25,8 @@ class IssueComment < ApplicationRecord belongs_to :user validates :body, :presence => true, :characters => true - validates :user, :presence => true - validates :issue, :presence => true + + def body + RichText.new("markdown", self[:body]) + end end