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
This commit is contained in:
parent
0878be4e0c
commit
3e4b4ffd9a
|
@ -4,7 +4,7 @@ module Redmine
|
||||||
class << self
|
class << self
|
||||||
|
|
||||||
def all
|
def all
|
||||||
@scms
|
@scms || []
|
||||||
end
|
end
|
||||||
|
|
||||||
# Add a new SCM adapter and repository
|
# Add a new SCM adapter and repository
|
||||||
|
|
Loading…
Reference in New Issue