]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/note_comment.rb
Use relative translations for changeset comments
[rails.git] / app / models / note_comment.rb
index 69a93c532a53354f725a0490d5d01461ac6a8b66..f94032e1e3e785a398b6e5f1d06afe195f06d331 100644 (file)
@@ -33,8 +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, :length => { :maximum => 2000 },
-                   :invalid_chars => true
+  validates :body, :length => { :maximum => 2000 }, :characters => true
 
   # Return the comment text
   def body