diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-31 20:56:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-31 20:56:14 +0000 |
commit | 1281d99f3057c391e6523d21ac6dee6fefba41ca (patch) | |
tree | d14c639e757880b27f72a418b89e81aa62723b30 /app/models | |
parent | c68dac7e9ad0e4f8d46a5799de7aef75d28da664 (diff) | |
download | redmine-1281d99f3057c391e6523d21ac6dee6fefba41ca.tar.gz redmine-1281d99f3057c391e6523d21ac6dee6fefba41ca.zip |
Added the ability to move issues (to another project) without changing their trackers.
Added length validation for homepage project attribute.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@687 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index f994ed6a5..eeeaa9fd4 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -46,6 +46,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 :identifier, :in => 3..12 validates_format_of :identifier, :with => /^[a-z0-9\-]*$/ |