From 8b60a4ba06071ded74b1fb89e2d259c44e222177 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 5 Sep 2016 17:16:21 +0000 Subject: [PATCH] Merged r15820 (#23758). git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@15822 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/repository.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/repository.rb b/app/models/repository.rb index 8276bef34..3e46570ee 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -367,7 +367,7 @@ class Repository < ActiveRecord::Base end def self.repository_class(class_name) - class_name = class_name.to_s.classify + class_name = class_name.to_s.camelize if Redmine::Scm::Base.all.include?(class_name) "Repository::#{class_name}".constantize end -- 2.39.5