]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/note_comment.rb
Rename xml processing methods with an update_ prefix
[rails.git] / app / models / note_comment.rb
index 31ee6f99b58de4db11862c9c7a258051da134a5b..aa8635aadde724c6bbb233650460d27a2471b49b 100644 (file)
@@ -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