去掉项目描述长度验证

This commit is contained in:
yanxd 2014-04-09 16:31:27 +08:00
parent a888cb131e
commit 7a31b3f4ea
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class Project < ActiveRecord::Base
validates_presence_of :name, :identifier
validates_uniqueness_of :identifier
validates_associated :repository, :wiki
validates_length_of :description, :maximum => 1000
# validates_length_of :description, :maximum => 255
validates_length_of :name, :maximum => 255
validates_length_of :homepage, :maximum => 255
validates_length_of :identifier, :in => 1..IDENTIFIER_MAX_LENGTH