summaryrefslogtreecommitdiffstats
path: root/app/models/wiki_content.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-05-10 11:06:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-05-10 11:06:29 +0000
commit682c5d1113fb1651937a6aed4d519d57fc78eecc (patch)
treee93233e29a382216b56cfe8cad672b5854b5e3b5 /app/models/wiki_content.rb
parent7dccf9fda6f30d8f4b0c5eaad9f6e2a1e67cd643 (diff)
downloadredmine-682c5d1113fb1651937a6aed4d519d57fc78eecc.tar.gz
redmine-682c5d1113fb1651937a6aed4d519d57fc78eecc.zip
Follows r2720 (#3308).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2727 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/wiki_content.rb')
-rw-r--r--app/models/wiki_content.rb2
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