]> source.dussan.org Git - redmine.git/commitdiff
Adds wiki comments length validation (#3308).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 May 2009 08:49:45 +0000 (08:49 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 May 2009 08:49:45 +0000 (08:49 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2720 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/wiki_content.rb

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