X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c819c8114d6e88f7e3a7ec4da93b4060e7aff3bc..7ccd11ebf3c8e119a04119a2e89ce6a879560578:/app/models/diary_comment.rb diff --git a/app/models/diary_comment.rb b/app/models/diary_comment.rb index 63eae3f21..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 + validates :body, :presence => true, :characters => true validates :diary_entry, :user, :associated => true after_save :spam_check