From f3673aff28ddf8e93693a35dca40ac261653876d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 24 Sep 2007 17:15:05 +0000 Subject: [PATCH] Added length validation for IssueCategory name. git-svn-id: http://redmine.rubyforge.org/svn/trunk@756 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue_category.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/issue_category.rb b/app/models/issue_category.rb index 1abcf4c32..b184c132f 100644 --- a/app/models/issue_category.rb +++ b/app/models/issue_category.rb @@ -22,6 +22,7 @@ class IssueCategory < ActiveRecord::Base validates_presence_of :name validates_uniqueness_of :name, :scope => [:project_id] + validates_length_of :name, :maximum => 30 alias :destroy_without_reassign :destroy