]> source.dussan.org Git - redmine.git/commitdiff
Follows r2720 (#3308).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 May 2009 11:06:29 +0000 (11:06 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 May 2009 11:06:29 +0000 (11:06 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2727 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/wiki_content.rb

index a72686b78589fb7b0526d6513e22889f61e477ee..d206be97d8ec9f6c0cf170d8ebc23fb8329fcd0f 100644 (file)
@@ -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