diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/wiki_content.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/wiki_content.rb b/app/models/wiki_content.rb index a72686b78..d206be97d 100644 --- a/app/models/wiki_content.rb +++ b/app/models/wiki_content.rb @@ -22,7 +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 + validates_length_of :comments, :maximum => 255, :allow_nil => true acts_as_versioned class Version |