]> source.dussan.org Git - redmine.git/commitdiff
"Cvs".classify => "Cv" (#23758).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 5 Sep 2016 16:22:46 +0000 (16:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 5 Sep 2016 16:22:46 +0000 (16:22 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15820 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository.rb

index 6da088541ec6c9a79894aa19369eeeb690f5e8c6..0a04b58e8a06675e7a661d9f40d552018d3306c6 100644 (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