##// END OF EJS Templates
Adds wiki comments length validation (#3308)....
Jean-Philippe Lang -
r2622:7319e8e235ca
parent child
Show More
@@ -22,6 +22,7 class WikiContent < ActiveRecord::Base
22 belongs_to :page, :class_name => 'WikiPage', :foreign_key => 'page_id'
22 belongs_to :page, :class_name => 'WikiPage', :foreign_key => 'page_id'
23 belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
23 belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
24 validates_presence_of :text
24 validates_presence_of :text
25 validates_length_of :comments, :maximum => 255
25
26
26 acts_as_versioned
27 acts_as_versioned
27 class Version
28 class Version
General Comments 0
You need to be logged in to leave comments. Login now