add a max char count to commnets (500)
This commit is contained in:
parent
b4fae58f12
commit
fc09b0fb40
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue