X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/037585db3933a2954b43bd4b30ea5e30ade00be2..87918595da1e1fad2ddd7aa62f9fc537dff657ff:/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