X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1e57189366c0e4a49cb29658e9bf5985996709a2..9f57f60b87ff55a4ba69db3afadb21bbbdcb3385:/app/models/diary_comment.rb diff --git a/app/models/diary_comment.rb b/app/models/diary_comment.rb index 475872b26..ade7a64ea 100644 --- a/app/models/diary_comment.rb +++ b/app/models/diary_comment.rb @@ -28,7 +28,7 @@ class DiaryComment < ActiveRecord::Base scope :visible, -> { where(:visible => true) } - validates :body, :presence => true, :invalid_chars => true + validates :body, :presence => true, :characters => true validates :diary_entry, :user, :associated => true after_save :spam_check