Allow note comments with no body
This commit is contained in:
parent
c42900f538
commit
e93e5fbe63
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class NoteComment < ActiveRecord::Base
|
|||
validates :visible, :inclusion => [true, false]
|
||||
validates :author, :associated => true
|
||||
validates :event, :inclusion => %w[opened closed reopened commented hidden]
|
||||
validates :body, :allow_blank => false, :length => { :maximum => 2000 },
|
||||
validates :body, :length => { :maximum => 2000 },
|
||||
:format => /\A[^\x00-\x08\x0b-\x0c\x0e-\x1f\x7f\ufffe\uffff]*\z/
|
||||
|
||||
# Return the comment text
|
||||
|
|
Loading…
Add table
Reference in a new issue