X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2cd7af7e0b2ad97687849576ed4e3f52c37a6d55..45487e1ff8e7d334792440a2b5b3b1067269bfaf:/app/models/note_comment.rb?ds=sidebyside diff --git a/app/models/note_comment.rb b/app/models/note_comment.rb index 999d04507..635a5b0de 100644 --- a/app/models/note_comment.rb +++ b/app/models/note_comment.rb @@ -29,7 +29,7 @@ class NoteComment < ApplicationRecord validates :id, :uniqueness => true, :presence => { :on => :update }, :numericality => { :on => :update, :only_integer => true } - validates :note, :presence => true, :associated => true + validates :note, :associated => true validates :visible, :inclusion => [true, false] validates :author, :associated => true validates :event, :inclusion => %w[opened closed reopened commented hidden]