X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/037585db3933a2954b43bd4b30ea5e30ade00be2..fb4ea1a02ac5dc1b0ef444e0d63fafa8f756fa8d:/app/models/note_comment.rb diff --git a/app/models/note_comment.rb b/app/models/note_comment.rb index 31ee6f99b..aa8635aad 100644 --- a/app/models/note_comment.rb +++ b/app/models/note_comment.rb @@ -7,7 +7,7 @@ class NoteComment < ActiveRecord::Base validates :note, :presence => true, :associated => true validates :visible, :inclusion => [true, false] validates :author, :associated => true - validates :event, :inclusion => %w(opened closed reopened commented hidden) + validates :event, :inclusion => %w[opened closed reopened commented hidden] validates :body, :format => /\A[^\x00-\x08\x0b-\x0c\x0e-\x1f\x7f\ufffe\uffff]*\z/ # Return the comment text