From c808295e9ef21105b8d4cc610b6749a0f3e30377 Mon Sep 17 00:00:00 2001 From: Wouter D'Haeseleer Date: Thu, 3 May 2012 12:53:24 +0200 Subject: [PATCH] Allow short project names We have some projects which a length of 2. With this I lower the minimum lenght to 1. As I could not found a specific reason why it is set to 3... --- app/models/project/validations_trait.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/project/validations_trait.rb b/app/models/project/validations_trait.rb index 2a970844..d2d207c4 100644 --- a/app/models/project/validations_trait.rb +++ b/app/models/project/validations_trait.rb @@ -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