##// END OF EJS Templates
Added length validation for IssueCategory name....
Jean-Philippe Lang -
r745:f3673aff28dd
parent child
Show More
@@ -22,6 +22,7 class IssueCategory < ActiveRecord::Base
22 22
23 23 validates_presence_of :name
24 24 validates_uniqueness_of :name, :scope => [:project_id]
25 validates_length_of :name, :maximum => 30
25 26
26 27 alias :destroy_without_reassign :destroy
27 28
General Comments 0
You need to be logged in to leave comments. Login now