diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-20 18:58:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-20 18:58:19 +0000 |
commit | 99dcf2ffe51393180df5694dd85c1d927d1d2401 (patch) | |
tree | 9abf28850dc8fe058c94e6e05c623ff759b97388 /app | |
parent | 31eda0fcb2d8122f4443557904253da290815d59 (diff) | |
download | redmine-99dcf2ffe51393180df5694dd85c1d927d1d2401.tar.gz redmine-99dcf2ffe51393180df5694dd85c1d927d1d2401.zip |
Fixed: project homepage length validation inconsistent with database field.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@745 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-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 fb5c63fe2..702a896f0 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -48,7 +48,7 @@ class Project < ActiveRecord::Base validates_length_of :name, :maximum => 30 validates_format_of :name, :with => /^[\w\s\'\-]*$/i validates_length_of :description, :maximum => 255 - validates_length_of :homepage, :maximum => 30 + validates_length_of :homepage, :maximum => 60 validates_length_of :identifier, :in => 3..12 validates_format_of :identifier, :with => /^[a-z0-9\-]*$/ |