From 3e4b4ffd9abc098fd1fb76cd3b65c93c74afbed3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 5 Dec 2012 22:00:02 +0000 Subject: [PATCH] Redmine::Scm::Base.all should return an empty array instead of nil when no SCM was added. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10945 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/scm/base.rb b/lib/redmine/scm/base.rb index 43e8a1877..b33a9cfd1 100644 --- a/lib/redmine/scm/base.rb +++ b/lib/redmine/scm/base.rb @@ -4,7 +4,7 @@ module Redmine class << self def all - @scms + @scms || [] end # Add a new SCM adapter and repository