Merge pull request #778 from netdata/Allow_short_project_names

Allow short project names
This commit is contained in:
Valeriy Sizov 2012-05-03 06:15:59 -07:00
commit 1db3228c33

View file

@ -20,7 +20,7 @@ module Project::ValidationsTrait
:uniqueness => true,
:format => { :with => /^[a-zA-Z0-9_\-\.]*$/,
:message => "only letters, digits & '_' '-' '.' allowed" },
:length => { :within => 3..255 }
:length => { :within => 1..255 }
validates :owner, :presence => true
validate :check_limit