updated validation format of repository url to allow file:///

git-svn-id: http://redmine.rubyforge.org/svn/trunk@137 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-01-02 10:12:15 +00:00
parent 470ef4d11e
commit 4ee55dc456
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@
class Repository < ActiveRecord::Base
belongs_to :project
validates_presence_of :url
validates_format_of :url, :with => /^(http|https|svn):\/\/.+/i
validates_format_of :url, :with => /^(http|https|svn|file):\/\/.+/i
@scm = nil