diff options
Diffstat (limited to 'app/models/wiki_content.rb')
-rw-r--r-- | app/models/wiki_content.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/wiki_content.rb b/app/models/wiki_content.rb index e958e7b24..a72686b78 100644 --- a/app/models/wiki_content.rb +++ b/app/models/wiki_content.rb @@ -22,6 +22,7 @@ class WikiContent < ActiveRecord::Base belongs_to :page, :class_name => 'WikiPage', :foreign_key => 'page_id' belongs_to :author, :class_name => 'User', :foreign_key => 'author_id' validates_presence_of :text + validates_length_of :comments, :maximum => 255 acts_as_versioned class Version |