diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-03 13:09:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-03 13:09:36 +0000 |
commit | 7a5ce28921200f2ea0c466da286fe7aa52cb3bf9 (patch) | |
tree | aa3e6d6c08b7987a5762f5711a77aa247b154052 /app/models/project.rb | |
parent | 16eb0421e5acbddcb3fa4ed18326b73bf6901482 (diff) | |
download | redmine-7a5ce28921200f2ea0c466da286fe7aa52cb3bf9.tar.gz redmine-7a5ce28921200f2ea0c466da286fe7aa52cb3bf9.zip |
Lower the project identifier limit to a minimum of two characters (#2003).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2221 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index e8d3ed179..c792b9c3b 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -60,7 +60,7 @@ class Project < ActiveRecord::Base validates_associated :repository, :wiki validates_length_of :name, :maximum => 30 validates_length_of :homepage, :maximum => 255 - validates_length_of :identifier, :in => 3..20 + validates_length_of :identifier, :in => 2..20 validates_format_of :identifier, :with => /^[a-z0-9\-]*$/ before_destroy :delete_all_members |