projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Rename Feeds::ChangesetCommentsController to ChangesetComments::FeedsController
[rails.git]
/
app
/
models
/
issue_comment.rb
diff --git
a/app/models/issue_comment.rb
b/app/models/issue_comment.rb
index 69aa8bde931b398ff18e134412ba3886a259849f..8d150a02f8b88512fdf47070c162dfaadb2dd4e7 100644
(file)
--- 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