diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-24 17:15:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-24 17:15:05 +0000 |
commit | f3673aff28ddf8e93693a35dca40ac261653876d (patch) | |
tree | 0642dc53a1ef76983d18b47b80057b8c232e5ddc /app | |
parent | dd6f438fd1f003aedfd07601b7908fba55f1c81a (diff) | |
download | redmine-f3673aff28ddf8e93693a35dca40ac261653876d.tar.gz redmine-f3673aff28ddf8e93693a35dca40ac261653876d.zip |
Added length validation for IssueCategory name.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@756 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/issue_category.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |