From 682c5d1113fb1651937a6aed4d519d57fc78eecc Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 10 May 2009 11:06:29 +0000 Subject: Follows r2720 (#3308). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2727 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/wiki_content.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models') 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 -- cgit v1.2.3