X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c2f23fea6a7821a4ad4c97fd65744b138ec86267..c5fc9f0e7e93088c599ae0d8540ee0117f277d6d:/app/models/changeset_comment.rb?ds=sidebyside diff --git a/app/models/changeset_comment.rb b/app/models/changeset_comment.rb index 232785d95..529641c7e 100644 --- a/app/models/changeset_comment.rb +++ b/app/models/changeset_comment.rb @@ -28,7 +28,7 @@ class ChangesetComment < ActiveRecord::Base validates :changeset, :presence => true, :associated => true validates :author, :presence => true, :associated => true validates :visible, :inclusion => [true, false] - validates :body, :invalid_chars => true + validates :body, :characters => true # Return the comment text def body