Fixed: project homepage length validation inconsistent with database field.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@745 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
31eda0fcb2
commit
99dcf2ffe5
|
@ -48,7 +48,7 @@ class Project < ActiveRecord::Base
|
||||||
validates_length_of :name, :maximum => 30
|
validates_length_of :name, :maximum => 30
|
||||||
validates_format_of :name, :with => /^[\w\s\'\-]*$/i
|
validates_format_of :name, :with => /^[\w\s\'\-]*$/i
|
||||||
validates_length_of :description, :maximum => 255
|
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_length_of :identifier, :in => 3..12
|
||||||
validates_format_of :identifier, :with => /^[a-z0-9\-]*$/
|
validates_format_of :identifier, :with => /^[a-z0-9\-]*$/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue