]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/issue_comment.rb
Merge branch 'master' into feature/add-communities-page
[rails.git] / app / models / issue_comment.rb
index 69aa8bde931b398ff18e134412ba3886a259849f..8d150a02f8b88512fdf47070c162dfaadb2dd4e7 100644 (file)
@@ -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