1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-28 03:11:15 +00:00

"Cvs".classify => "Cv" (#23758).

git-svn-id: http://svn.redmine.org/redmine/trunk@15820 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-09-05 16:22:46 +00:00
parent 45a0daa16a
commit e50b066cb1

View File

@ -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