From fc09b0fb40f218435a204f30b0897045c4293dd9 Mon Sep 17 00:00:00 2001 From: maxwell Date: Thu, 13 Jan 2011 14:49:17 -0800 Subject: [PATCH] add a max char count to commnets (500) --- app/models/comment.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/comment.rb b/app/models/comment.rb index 638fb070f..73e7400ee 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -34,6 +34,7 @@ class Comment belongs_to :person, :class_name => "Person" validates_presence_of :text, :diaspora_handle, :post + validates_length_of :text, :maximum => 500 validates_with HandleValidator before_save do