]> source.dussan.org Git - redmine.git/commitdiff
Merged r15820 (#23758).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 5 Sep 2016 17:16:15 +0000 (17:16 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 5 Sep 2016 17:16:15 +0000 (17:16 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15821 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository.rb

index 8276bef34421d157c26a58805e9fa38e04cb969e..3e46570eeed5039a3f5ec405be62a08dc70e42eb 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