]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/issue_comment.rb
Add social sharing functionality
[rails.git] / app / models / issue_comment.rb
index 07647d67946f221564dc7667065ee8f737c99aa0..8d150a02f8b88512fdf47070c162dfaadb2dd4e7 100644 (file)
@@ -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