OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31eda0f
)
Fixed: project homepage length validation inconsistent with database field.
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Thu, 20 Sep 2007 18:58:19 +0000
(18:58 +0000)
committer
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Thu, 20 Sep 2007 18:58:19 +0000
(18:58 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@745
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
app/models/project.rb
patch
|
blob
|
history
diff --git
a/app/models/project.rb
b/app/models/project.rb
index
fb5c63f
..
702a896
100644
(file)
--- 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 =>
3
0
+ validates_length_of :homepage, :maximum =>
6
0
validates_length_of :identifier, :in => 3..12
validates_format_of :identifier, :with => /^[a-z0-9\-]*$/